3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dow = array("mon","tue","wed","thu","fri","sat","sun"); $inc = 3; foreach($dow as $an_element ) { echo $dow[($inc+(count($dow))) % (count($dow))]."\n"; $inc++; }
Output for 5.2.14 - 7.1.0
thu fri sat sun mon tue wed