3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testing { public function test ($count, &$array = array()){ if ($count > 20) return 1; $array[] = $this->test($count+1, $array); var_dump($array); return 10000; } } $testme = new testing(); //var_dump($testme->test()); var_dump($testme->test(0));

preferences:
35.4 ms | 402 KiB | 5 Q