3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function fun($f) { return $f; } echo "Create pointer\n"; $f = fun('foo'); echo "Call pointer\n"; $f(); echo "Done\n";
based on ibWlv
Output for 7.0.30 - 7.2.8
Create pointer Call pointer Fatal error: Uncaught Error: Call to undefined function foo() in /in/oflv5:8 Stack trace: #0 {main} thrown in /in/oflv5 on line 8
Process exited with code 255.
Output for hhvm-3.22.0
Create pointer Call pointer Fatal error: Uncaught Error: Call to undefined function foo() in /in/oflv5:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Create pointer Call pointer Fatal error: Uncaught Error: Call to undefined function foo() in /in/oflv5:8 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.30
Create pointer Call pointer Fatal error: Call to undefined function foo() in /in/oflv5 on line 8
Process exited with code 255.