3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'gehr'; function foo($x) { return $x('gehr') === 'true'; } echo foo($x);
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function gehr() in /in/8udbi:8 Stack trace: #0 /in/8udbi(11): foo('gehr') #1 {main} thrown in /in/8udbi on line 8
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Call to undefined function gehr() in /in/8udbi:-1 Stack trace: #0 /in/8udbi(-1): foo() #1 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Call to undefined function gehr() in /in/8udbi:8 Stack trace: #0 /in/8udbi(11): foo() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function gehr() in /in/8udbi on line 8
Process exited with code 255.