3v4l.org

run code in 200+ php & hhvm versions
<?php (function () { echo "Hello World!"; };
based on rG5jQ
Output for 7.1.25 - 7.4.0beta4
Parse error: syntax error, unexpected ';' in /in/koPKT on line 4
Process exited with code 255.