3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dow = array("mon","tue","wed","thu","fri","sat","sun"); $inc = 3; foreach($dow) { echo $dow[($inc+(count($dow))) % (count($dow))]."\n"; $inc++; }
Output for 5.3.0 - 5.3.25, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected ')' in /in/MU1se on line 7
Process exited with code 255.

preferences:
179.85 ms | 1387 KiB | 49 Q