3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php function homepage_display() { echo "Hello World\n"; } $callback = "homepage_display"; $callback(); // doesn't work call_user_func($callback); // doesn't work either homepage_display(); // works!!
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '<' in /in/1TA88 on line 3
Process exited with code 255.