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)) { $iColumns = 0; } } ?>
based on q3fWv
Output for 5.3.0 - 7.2.0
sixteen eight eight twelve four eight eight nine seven nine seven Notice: Undefined offset: 11 in /in/AG232 on line 7 sixteen eight eight
Output for 4.3.0 - 5.2.17
sixteen eight eight twelve four eight eight nine seven nine seven Notice: Undefined offset: 11 in /in/AG232 on line 7 sixteen eight eight