3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = 123456699999876528; $float = $val / 100; var_dump($val); var_dump($float); var_dump(sprintf('%f', $float));
Output for 5.2.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(123456699999876528) float(1.2345669999988E+15) string(23) "1234566999998765.250000"
Output for 4.3.0 - 5.2.6
int(123456699999876528) float(1234566999998800) string(23) "1234566999998765.250000"