3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3,4,5,6,7,8,9); function walk($a, $index = 0){ if (count($a) == $index + 1) { return; } else { walk($a, $index + 1); echo($a[$index]) } }
Output for 5.3.0 - 5.3.25, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/b1tXI on line 10
Process exited with code 255.

preferences:
177.98 ms | 1395 KiB | 49 Q