3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Stopping with \$i < 'AA'\n" for($i = "A"; $i < "AA"; $i++) echo $i; echo "\n\nStopping with \$i <= 'Z'\n"; for($i = "A"; $i <= "Z"; $i++) echo $i;
Output for 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
Parse error: syntax error, unexpected 'for' (T_FOR), expecting ',' or ';' in /in/4LhuM on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_FOR, expecting ',' or ';' in /in/4LhuM on line 4
Process exited with code 255.

preferences:
185.04 ms | 1395 KiB | 59 Q