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 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.0rc4
1.00 51.000 61.12 5
Output for 4.3.0 - 4.3.6
1.00 1.000 1.12