3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i < 10; $i++){ echo "$i % 4 = " . ($i%4) . "\n"; }
Output for 4.3.0 - 7.1.0
0 % 4 = 0 1 % 4 = 1 2 % 4 = 2 3 % 4 = 3 4 % 4 = 0 5 % 4 = 1 6 % 4 = 2 7 % 4 = 3 8 % 4 = 0 9 % 4 = 1