3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php printf ("%.2f \n", 3.14159); printf ("%.2f \n", 40); printf("[%10.2s]\n", 3.14159); printf("[%10.2s]\n", 40);
based on A2XLH
Output for 5.3.21 - 7.2.0
3.14 40.00 [ 3.] [ 40]