3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number1 = 250; $number2 = 7; $format = '%2$03d'; echo sprintf($format, $number1); echo sprintf($format, $number2);
based on iQhRd
Output for 5.6.0 - 7.2.8
Warning: sprintf(): Too few arguments in /in/u6hQ5 on line 8 Warning: sprintf(): Too few arguments in /in/u6hQ5 on line 9