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 fG88E
Output for 7.0.0 - 7.2.0
o Fatal error: Uncaught Error: Function name must be a string in /in/gRMRp:8 Stack trace: #0 /in/gRMRp(11): {closure}() #1 {main} thrown in /in/gRMRp on line 8
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '(' in /in/gRMRp on line 11
Process exited with code 255.