3v4l.org

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