3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo '---begin---'; try { $result = @create_function('', 'return (return 1);'); } catch (\Error $ex) { $result = $ex->getMessage(); } echo '---end---'; var_dump($result);
based on iDbJk
Output for 7.0.0 - 7.2.0
---begin------end---string(44) "syntax error, unexpected 'return' (T_RETURN)"
Output for 5.5.0 - 5.6.28
---begin------end---bool(false)
Process exited with code 255.