3v4l.org

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