3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1 = "AWK-JES-0099"; $parts = explode("-",$str1); echo sprintf($parts[0] . '-%04d'.$parts[1] . '-%04d', $parts[2]+1);
based on 8h86i
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: sprintf(): Too few arguments in /in/3q4Qr on line 6
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: arguments: (too few) in /in/3q4Qr on line 6
Output for 4.3.0 - 4.3.1
Warning: sprintf() [http://www.php.net/function.sprintf]: Too few arguments in /in/3q4Qr on line 6