3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 0; $o = (function () use( $o) { $i++; echo 'o'; if ($i < 10) { $o(); } })();
based on PV7d2
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: o in /in/jQI9T on line 4 Notice: Undefined variable: i in /in/jQI9T on line 5 o Fatal error: Uncaught Error: Function name must be a string in /in/jQI9T:8 Stack trace: #0 /in/jQI9T(10): {closure}() #1 {main} thrown in /in/jQI9T on line 8
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '(' in /in/jQI9T on line 10
Process exited with code 255.