3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ""; echo chr( for ($t=0; $t<1000; $t++) $input .= chr($t); for ($t=0; $t<strlen($input); $t++) { echo "".ord(substr($input, $t, 1))." "; } echo "strlen = ".strlen($input)."\n"; echo("t = $t \n");
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'for' (T_FOR), expecting ')' in /in/sKitq on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FOR, expecting ')' in /in/sKitq on line 5
Process exited with code 255.

preferences:
185.36 ms | 1395 KiB | 64 Q