3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (1 % 3) . "\n"; echo (2 % 3) . "\n"; echo (3 % 3) . "\n"; echo (4 % 3) . "\n"; echo (5 % 3) . "\n";
Output for 4.3.0 - 7.1.0
1 2 0 1 2