3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 20; $i++) { printf("%d %d %d\n", floor($i / 3), $i, ceil($i / 3)); }
Output for 4.3.0 - 7.1.0
0 0 0 0 1 1 0 2 1 1 3 1 1 4 2 1 5 2 2 6 2 2 7 3 2 8 3 3 9 3 3 10 4 3 11 4 4 12 4 4 13 5 4 14 5 5 15 5 5 16 6 5 17 6 6 18 6 6 19 7