3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $defaultArrangement=array('sixteen','eight','eight','twelve','four','eight','eight','nine','seven','nine','seven'); $iColumns=0; $counter=0; while ($counter < 15) { echo $defaultArrangement[$iColumns]."\n"; $iColumns++; $counter++; if ($iColumns > count($defaultArrangement)-1) { $iColumns = 0; } } ?>
based on AG232
Output for 4.3.0 - 7.2.0
sixteen eight eight twelve four eight eight nine seven nine seven sixteen eight eight twelve