3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array(1,2,3,4,5,6); $length = count($list); $columns = 3; for($column = 0; $column < $columns; $column++) { for($i = $column; $i < $length; $i=$i+$columns;) { echo $list[$i]; } echo '<br/>'; }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Parse error: syntax error, unexpected ';', expecting ')' in /in/MDjdl on line 9
Process exited with code 255.

preferences:
173.92 ms | 1395 KiB | 65 Q