3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // freitag = 5 for ($i=1; $i<8; $i++) { $neu = (1 + $i)%7; echo "\n-> 1 i:". $i." <->".$neu; }
based on NXXva
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
-> 1 i:1 <->2 -> 1 i:2 <->3 -> 1 i:3 <->4 -> 1 i:4 <->5 -> 1 i:5 <->6 -> 1 i:6 <->0 -> 1 i:7 <->1