3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v = 3347.99999999999; var_dump($v); for ($i = 0; $i < 15; $i++) { printf("%d: %." . $i . "f\n", $i, $v); }
based on F7H7Z
Output for 4.3.0 - 7.2.0
float(3348) 0: 3348 1: 3348.0 2: 3348.00 3: 3348.000 4: 3348.0000 5: 3348.00000 6: 3348.000000 7: 3348.0000000 8: 3348.00000000 9: 3348.000000000 10: 3348.0000000000 11: 3347.99999999999 12: 3347.999999999990 13: 3347.9999999999900 14: 3347.99999999999000