3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = '012/sekolah/smk/2018'; $arr = preg_split('/(?<=[0-9])/i',$var); $arr[2] +=1; $var = implode('',$arr); echo $var;
based on bq4d2
Output for 5.6.38 - 7.3.0rc3
013/sekolah/smk/2018