3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(sprintf('%.99f', floatval(1)));
based on 0U8NO
Output for 5.3.4 - 7.1.0
Notice: sprintf(): Requested precision of 99 digits was truncated to PHP maximum of 53 digits in /in/m1h9I on line 3 string(55) "1.00000000000000000000000000000000000000000000000000000"
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/m1h9I on line 3 string(42) "1.0000000000000000000000000000000000000000"
Output for 4.3.0 - 5.2.8
string(42) "1.0000000000000000000000000000000000000000"