3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dow = array("mon","tue","wed","thu","fri","sat","sun"); $pick_a_day = 14; foreach($dow as $inc => $an_element ) { echo $dow[($pick_a_day+(count($dow))) % (count($dow))]." ".$pick_a_day."\n"; $pick_a_day++; }
Output for 4.3.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
mon 14 tue 15 wed 16 thu 17 fri 18 sat 19 sun 20
Output for hhvm-3.10.0

Process exited with code 153.