3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $g = function ($c) use (&$g) { if ($c == 100) return 0; return $g($c + 1); }; var_dump($c(0));
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: c in /in/r8Y4A on line 7 Fatal error: Uncaught Error: Function name must be a string in /in/r8Y4A:7 Stack trace: #0 {main} thrown in /in/r8Y4A on line 7
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Notice: Undefined variable: c in /in/r8Y4A on line 7 Fatal error: Function name must be a string in /in/r8Y4A on line 7
Process exited with code 255.