3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php sprintf("%1$d %1$s", 10.1);
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: d in /in/NTFp5 on line 3 Notice: Undefined variable: s in /in/NTFp5 on line 3 Warning: sprintf(): Too few arguments in /in/NTFp5 on line 3
Output for 5.2.3 - 5.4.45
Warning: sprintf(): Too few arguments in /in/NTFp5 on line 3
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: sprintf() [<a href='function.sprintf'>function.sprintf</a>]: Too few arguments in <b>/in/NTFp5</b> on line <b>3</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: sprintf(): Too few arguments in <b>/in/NTFp5</b> on line <b>3</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: sprintf() [<a href='http://www.php.net/function.sprintf'>function.sprintf</a>]: Too few arguments in <b>/in/NTFp5</b> on line <b>3</b><br />