3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i < 10; $i++){ echo "$i % 4 = " . ($i%4); }
Output for 4.3.0 - 7.1.0
0 % 4 = 01 % 4 = 12 % 4 = 23 % 4 = 34 % 4 = 05 % 4 = 16 % 4 = 27 % 4 = 38 % 4 = 09 % 4 = 1