3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=4094; $xx=$x; $a=100; $s=0; for ($i=1;; $i=$i+$i*$a*0.01) { $x-=$i; //echo $i."\n"; if ($x <0) break; $s++; $c=$i; } echo ($c)."////".$s."\\\\\\ \n".($xx-$x); ?>
based on cCIYD
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
1024////11\\\ 4095