3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function bla(){ echo 'bla ...'; } function blee($f) { echo __FUNCTION__; $f(); } blee(bla());
Output for 7.0.0 - 7.2.0
bla ...blee Fatal error: Uncaught Error: Function name must be a string in /in/a2JaX:9 Stack trace: #0 /in/a2JaX(11): blee(NULL) #1 {main} thrown in /in/a2JaX on line 9
Process exited with code 255.
Output for 5.3.19 - 5.6.28
bla ...blee Fatal error: Function name must be a string in /in/a2JaX on line 9
Process exited with code 255.