3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); for($i = 1; $i<=150, $i++){ $array[$i] = $i; } function walk($a, $index = 150){ if (-1 == $index -1) { echo($a[$index]); } else { echo($a[$index]); walk($a, $index -1); } } walk($array);
Output for 5.3.0 - 5.3.25, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected ')', expecting ';' in /in/WRvbX on line 3
Process exited with code 255.

preferences:
172.19 ms | 1395 KiB | 49 Q