3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(sprintf('%.99f', floatval(0.1)));
based on IXu7f
Output for 5.3.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: sprintf(): Requested precision of 99 digits was truncated to PHP maximum of 53 digits in /in/W3eJs on line 3 string(55) "0.10000000000000000555111512312578270211815834045410156"
Output for 5.2.1 - 5.2.8, hhvm-3.10.0 - 3.12.0
string(42) "0.1000000000000000055511151231257827021182"
Output for 5.2.9 - 5.3.3
Notice: sprintf(): Requested precision of 99 digits was truncated to PHP maximum of 40 digits in /in/W3eJs on line 3 string(42) "0.1000000000000000055511151231257827021182"
Output for 4.3.0 - 5.2.0
string(42) "0.1000000000000000000000000000000000000000"