3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $precision = 18; while($precision--) { ini_set('precision', $precision); echo $precision . ": " . (62 + 3.99) . PHP_EOL; }
Output for 7.0.0 - 7.2.6
17: 65.99 16: 65.99 15: 65.99 14: 65.99 13: 65.99 12: 65.99 11: 65.99 10: 65.99 9: 65.99 8: 65.99 7: 65.99 6: 65.99 5: 65.99 4: 65.99 3: 65.99 2: 65.99 1: 65.99 0: 65.99
Output for 5.6.0 - 5.6.28
17: 65.989999999999995 16: 65.98999999999999 15: 65.99 14: 65.99 13: 65.99 12: 65.99 11: 65.99 10: 65.99 9: 65.99 8: 65.99 7: 65.99 6: 65.99 5: 65.99 4: 65.99 3: 66 2: 66 1: 7.0E+1 0: 7.0E+1