3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.