3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tpl = "AR42-8LNA-%sEQ3"; $char = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $length = strlen($char)-1; for($i=0; i<=$length; i++) { printf($tpl, substr($char, $i, 1)); echo PHP_EOL; }
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '++' (T_INC), expecting ')' in /in/TIZLI on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_INC, expecting ')' in /in/TIZLI on line 8
Process exited with code 255.

preferences:
183.42 ms | 1386 KiB | 64 Q