3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 720 / 11; $y = 0; for ($i = 0; $i < 13; $i++) { $min = floor($y); $s = 60 * ($y-$min); $sec = floor($s); $ms = $s-$sec; echo "$i:$min:$sec.$ms $y\n"; $y += $x; }
based on ZB23c
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0:0:0.0 0 1:65:27.0.2727272727272 65.454545454545 2:130:54.0.54545454545439 130.90909090909 3:196:21.0.81818181818244 196.36363636364 4:261:49.0.090909090908781 261.81818181818 5:327:16.0.36363636363512 327.27272727273 6:392:43.0.63636363636147 392.72727272727 7:458:10.0.90909090908781 458.18181818182 8:523:38.0.18181818181756 523.63636363636 9:589:5.0.45454545454731 589.09090909091 10:654:32.0.72727272727707 654.54545454545 11:720:0.6.821210263297E-12 720 12:785:27.0.27272727273657 785.45454545455