3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo printf("%.2f", 1); echo printf("%.3f", 1); echo printf("%.2f", 1.1234); ?>
Output for 4.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1.0041.00051.124
Output for 4.3.0 - 4.3.6
1.001.0001.12