3v4l.org

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

preferences:
174.48 ms | 1395 KiB | 60 Q