3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str1 = "AWK-JES-0099"; $parts = explode("-",$str1); echo sprintf($parts[0] . '-' . $parts[1] . '-%3d', $parts[2]+1);
based on 8W1Mq
Output for 4.3.0 - 7.1.10
AWK-JES-100