3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo uppercase_letters('ac_SISR_Kanti_Adhikari_AD', 0, 2); echo ' '; echo uppercase_letters('acaDdf984987Ad',0,10); function uppercase_letters($str, $start, $end){ $strlen = strlen($str); $str_uc = strtoupper(substr($str, $start, $end)); $then = substr($str, $end, $strlen); return $str_uc . $then; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
AC_SISR_Kanti_Adhikari_AD ACADDF984987Ad