3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
Branch analysis from position: 34
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
Branch analysis from position: 29
Branch analysis from position: 11
Branch analysis from position: 8
filename:       /in/0l1J6
function name:  (null)
number of ops:  44
compiled vars:  !0 = $collection, !1 = $offset, !2 = $limit, !3 = $start, !4 = $end, !5 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 4
    5     2        ASSIGN                                                   !2, 2
    7     3        COUNT                                            ~9      !0
          4        IS_SMALLER                                       ~10     ~9, !1
          5      > JMPNZ_EX                                         ~10     ~10, ->8
          6    >   IS_SMALLER                                       ~11     !1, 0
          7        BOOL                                             ~10     ~11
          8    > > JMPNZ_EX                                         ~10     ~10, ->11
          9    >   IS_EQUAL                                         ~12     !2, 0
         10        BOOL                                             ~10     ~12
         11    > > JMPZ                                                     ~10, ->13
         12    > > EXIT                                                     'inputs+out+of+bounds'
   10    13    >   SUB                                              ~13     !1, !2
         14        IS_SMALLER_OR_EQUAL                                      0, ~13
         15      > JMPZ                                                     ~14, ->19
   11    16    >   SUB                                              ~15     !1, !2
         17        ASSIGN                                                   !3, ~15
   10    18      > JMP                                                      ->20
   13    19    >   ASSIGN                                                   !3, 0
   16    20    >   ADD                                              ~18     !1, !2
         21        COUNT                                            ~19     !0
         22        IS_SMALLER                                               ~19, ~18
         23      > JMPZ                                                     ~20, ->29
   17    24    >   COUNT                                            ~21     !0
         25        SUB                                              ~22     ~21, !1
         26        ADD                                              ~23     ~22, !2
         27        ASSIGN                                                   !4, ~23
   16    28      > JMP                                                      ->31
   19    29    >   ADD                                              ~25     !1, !2
         30        ASSIGN                                                   !4, ~25
   21    31    >   IS_EQUAL                                                 !3, 0
         32      > JMPZ                                                     ~27, ->34
         33    >   PRE_INC                                                  !4
   23    34    >   INIT_FCALL                                               'array_slice'
         35        SEND_VAR                                                 !0
         36        SEND_VAR                                                 !3
         37        SEND_VAR                                                 !4
         38        DO_ICALL                                         $29     
         39        ASSIGN                                                   !5, $29
   24    40        INIT_FCALL                                               'var_dump'
         41        SEND_VAR                                                 !5
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
254.62 ms | 975 KiB | 15 Q