3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Hello World Hello World Hello World
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/GuNUN on line 10
Process exited with code 255.