3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php rod(); function rod() { echo 'rod'; echo PHP_EOL; $e(); $e = function() { echo 'elias'; PHP_EOL; }; }
based on YBFEr
Output for 7.0.0 - 7.2.0
rod Notice: Undefined variable: e in /in/LKHer on line 9 Fatal error: Uncaught Error: Function name must be a string in /in/LKHer:9 Stack trace: #0 /in/LKHer(3): rod() #1 {main} thrown in /in/LKHer on line 9
Process exited with code 255.
Output for 5.3.20 - 5.6.21
rod Notice: Undefined variable: e in /in/LKHer on line 9 Fatal error: Function name must be a string in /in/LKHer on line 9
Process exited with code 255.