Maybe there ist somebody out there, who cant test this code on a suhosin hardened PHP (>=7) with disabled eval and comment on it's usability:
try {$evalworks = false;eval('$evalworks = true;');} catch (\Throwable $e) {}
if(!$evalworks){
echo "Eval is not available.";
}