3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo printf('%65.60f',4.05);
Output for 5.3.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: printf(): Requested precision of 60 digits was truncated to PHP maximum of 53 digits in /in/hIfmH on line 3 4.0499999999999998223643160599749535322189331054687500065
Output for 4.3.7 - 5.2.8, hhvm-3.10.0 - 3.12.0
4.049999999999999822364316059974953532218965
Output for 5.2.9 - 5.3.3
Notice: printf(): Requested precision of 60 digits was truncated to PHP maximum of 40 digits in /in/hIfmH on line 3 4.049999999999999822364316059974953532218965
Output for 4.3.0 - 4.3.6
4.0499999999999998223643160599749535322189