3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("T1","one"); define("T2","two"); $test='number %2$s'; $test=sprintf($test, T1); echo $test;
based on pto3b
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.8
Warning: sprintf(): Too few arguments in /in/8jkZm on line 7
Output for hhvm-3.15.4
Warning: Invalid argument: arguments: (too few) in /in/8jkZm on line 7