3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=42; $xx=$x; $a=50; $q=1; $qq=0.07; $s=0; for ($i=$qq;; $i=$i+$i*$a*0.01) { $x-=$i; //echo $i."\n"; if ($x <0) break; $y=$x; $s++; $c=$i; } echo ($c)."////".$s."\\\\\\ \n".($xx-$x).">>>n>>".(-$x)."\nend>>>". ($y); ?>
based on rT9B5
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
13.623365478516////14\\\ 61.16514465332>>>n>>19.16514465332 end>>>1.2699035644531