3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class testing { public function test ($varr = false, &$array = array()){ if (count($array) > 2) return 1; array[count($array)+1] = $this->test(); return 100; } } $testme = new testing(); var_dump($testme->test()); var_dump($testme->test(true));
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '[', expecting '(' in /in/fF10d on line 6
Process exited with code 255.