3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functions = [function($a){return $a+1;}]; for ($i=1;$i<100000;$i++) { $f = $functions[$i-1]; $functions[$i] = function ($a) use ($f) { return $f($a); } } $functions[$i](1);
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '}' in /in/Ue6q5 on line 9
Process exited with code 255.

preferences:
156.61 ms | 1399 KiB | 23 Q