3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = $tt = 2044; $w = $ww = 1212; while (($w / $t) < .60) { $w++; $t++; } echo "w = $w, t = $t\n"; echo "streak: " . ($t - $tt), "\n"; $t = $tt; $w = $ww; $n = 0; $c = 0; while (($w / $t) < .60) { $w++; $t++; $n++; if ($n == 5) { $n = 0; $t++; $c++; } } echo "runs of five: ", $c;
based on vrmGa
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
w = 1248, t = 2080 streak: 36 runs of five: 10