3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo uppercase_letters('ac84894987984987AD', 2); echo uppercase_letters('acaDdf984987Ad', 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/c4anK
function name:  (null)
number of ops:  11
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                                              'ac84894987984987AD'
          2        SEND_VAL_EX                                              2
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
    4     5        INIT_FCALL_BY_NAME                                       'uppercase_letters'
          6        SEND_VAL_EX                                              'acaDdf984987Ad'
          7        SEND_VAL_EX                                              10
          8        DO_FCALL                                      0  $1      
          9        ECHO                                                     $1
   13    10      > RETURN                                                   1

Function uppercase_letters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4anK
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
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        STRLEN                                           ~6      !0
          4        ASSIGN                                                   !3, ~6
    8     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
    9    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !5, $11
   11    20        CONCAT                                           ~13     !4, !5
         21      > RETURN                                                   ~13
   13    22*     > RETURN                                                   null

End of function uppercase_letters

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.08 ms | 1396 KiB | 17 Q