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]; $iColumns++; $counter++; if ($iColumns > count($defaultArrangement)) { $iColumns = 0; } } ?>
based on HvhM2
Output for 5.3.0 - 7.2.0
sixteeneighteighttwelvefoureighteightninesevennineseven Notice: Undefined offset: 11 in /in/q3fWv on line 7 sixteeneighteight
Output for 4.3.0 - 5.2.17
sixteeneighteighttwelvefoureighteightninesevennineseven Notice: Undefined offset: 11 in /in/q3fWv on line 7 sixteeneighteight