3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo printf("%.2f \n", 1); echo printf("%.3f \n", 1); echo printf("%.2f \n", 1.1234); ?>
Output for 4.3.7 - 7.2.0
1.00 61.000 71.12 6
Output for 4.3.0 - 4.3.6
1.00 1.000 1.12