3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(sprintf('%.99f', floatval(0.9)));
based on m1h9I
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/IXu7f on line 3 string(55) "0.90000000000000002220446049250313080847263336181640625"
Output for 5.2.1 - 5.2.8, hhvm-3.10.0 - 3.12.0
string(42) "0.9000000000000000222044604925031308084726"
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/IXu7f on line 3 string(42) "0.9000000000000000222044604925031308084726"
Output for 4.3.0 - 5.2.0
string(42) "0.9000000000000000000000000000000000000000"