3v4l.org

run code in 150+ 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.1.0
1.00 51.000 61.12 5
Output for 4.3.0 - 4.3.6
1.00 1.000 1.12