3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 4; $j = 1; $a = $i / 3 * 3 + $j / 3; $b = $i % 3 * 3 + $j % 3; echo $a." ".$b;
Output for 4.3.0 - 7.1.0
4.3333333333333 4