3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1 = "AWK-JES-0099"; $parts = explode("AWK-JES-",$str1); echo sprintf($parts[0] . '-%04d', $parts[1]+1);
based on Me22P
Output for 4.3.0 - 7.1.0
-0100