3v4l.org

run code in 300+ PHP versions simultaneously
<?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; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jk4V4
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'uppercase_letters'
          1        SEND_VAL_EX                                              'ac_SISR_Kanti_Adhikari_AD'
          2        SEND_VAL_EX                                              0
          3        SEND_VAL_EX                                              2
          4        DO_FCALL                                      0  $0      
          5        ECHO                                                     $0
    4     6        ECHO                                                     '%0A'
    6     7        INIT_FCALL_BY_NAME                                       'uppercase_letters'
          8        SEND_VAL_EX                                              'acaDdf984987Ad'
          9        SEND_VAL_EX                                              0
         10        SEND_VAL_EX                                              10
         11        DO_FCALL                                      0  $1      
         12        ECHO                                                     $1
   15    13      > RETURN                                                   1

Function uppercase_letters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jk4V4
function name:  uppercase_letters
number of ops:  23
compiled vars:  !0 = $str, !1 = $start, !2 = $end, !3 = $strlen, !4 = $str_uc, !5 = $then
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    9     3        STRLEN                                           ~6      !0
          4        ASSIGN                                                   !3, ~6
   10     5        INIT_FCALL                                               'strtoupper'
          6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !4, $9
   11    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !5, $11
   13    20        CONCAT                                           ~13     !4, !5
         21      > RETURN                                                   ~13
   15    22*     > RETURN                                                   null

End of function uppercase_letters

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.39 ms | 1388 KiB | 17 Q