3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers[0] = 5; for($i=1; $i <= 6]; $i++) { echo $i; }
Output for 5.3.23, 5.4.13
Parse error: syntax error, unexpected ']', expecting ';' in /in/tHfRN on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
Parse error: syntax error, unexpected ']', expecting ';' in IUlRg on line 4
Process exited with code 255.

preferences:
204.03 ms | 1395 KiB | 45 Q