3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_rows = array(); $_row = array(); $i = 0; for($i = 0; $i <= 28; $i++) { if(in_array($i, array(1,2))) { $_row['row1'][] = 'Category '.$i; } if(in_array($i, array(3,4,5))) { $_row['row2'][] = 'Category '.$i; } if(in_array($i, array(6,7,8))) { $_row['row3'][] = 'Category '.$i; } if(in_array($i, array(9,10,11))) { $_row['row4'][] = 'Category '.$i; } if(in_array($i, array(12,13))) { $_row['row5'][] = 'Category '.$i; } if(in_array($i, array(14,15,16))) { $_row['row6'][] = 'Category '.$i; } if(in_array($i, array(17,18,19))) { $_row['row7'][] = 'Category '.$i; } if(in_array($i, array(20,21,22))) { $_row['row8'][] = 'Category '.$i; } if(in_array($i, array(23,24,25))) { $_row['row9'][] = 'Category '.$i; } if(in_array($i, array(26,27,28))) { $_row['row10'][] = 'Category '.$i; } $_rows[] = $_row; } print_r($_rows);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
2 jumps found. (Code = 44) Position 1 = 100, Position 2 = 5
Branch analysis from position: 100
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 41
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 50
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 59
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 68
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 73, Position 2 = 77
Branch analysis from position: 73
2 jumps found. (Code = 43) Position 1 = 82, Position 2 = 86
Branch analysis from position: 82
2 jumps found. (Code = 43) Position 1 = 91, Position 2 = 95
Branch analysis from position: 91
2 jumps found. (Code = 44) Position 1 = 100, Position 2 = 5
Branch analysis from position: 100
Branch analysis from position: 5
Branch analysis from position: 95
Branch analysis from position: 86
Branch analysis from position: 77
Branch analysis from position: 68
Branch analysis from position: 59
Branch analysis from position: 50
Branch analysis from position: 41
Branch analysis from position: 32
Branch analysis from position: 23
Branch analysis from position: 14
filename:       /in/3R2aI
function name:  (null)
number of ops:  104
compiled vars:  !0 = $_rows, !1 = $_row, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 0
    6     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->98
    8     5    >   INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 <array>
          8        DO_ICALL                                         $7      
          9      > JMPZ                                                     $7, ->14
    9    10    >   CONCAT                                           ~10     'Category+', !2
         11        FETCH_DIM_W                                      $8      !1, 'row1'
         12        ASSIGN_DIM                                               $8
         13        OP_DATA                                                  ~10
   12    14    >   INIT_FCALL                                               'in_array'
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 <array>
         17        DO_ICALL                                         $11     
         18      > JMPZ                                                     $11, ->23
   13    19    >   CONCAT                                           ~14     'Category+', !2
         20        FETCH_DIM_W                                      $12     !1, 'row2'
         21        ASSIGN_DIM                                               $12
         22        OP_DATA                                                  ~14
   16    23    >   INIT_FCALL                                               'in_array'
         24        SEND_VAR                                                 !2
         25        SEND_VAL                                                 <array>
         26        DO_ICALL                                         $15     
         27      > JMPZ                                                     $15, ->32
   17    28    >   CONCAT                                           ~18     'Category+', !2
         29        FETCH_DIM_W                                      $16     !1, 'row3'
         30        ASSIGN_DIM                                               $16
         31        OP_DATA                                                  ~18
   20    32    >   INIT_FCALL                                               'in_array'
         33        SEND_VAR                                                 !2
         34        SEND_VAL                                                 <array>
         35        DO_ICALL                                         $19     
         36      > JMPZ                                                     $19, ->41
   21    37    >   CONCAT                                           ~22     'Category+', !2
         38        FETCH_DIM_W                                      $20     !1, 'row4'
         39        ASSIGN_DIM                                               $20
         40        OP_DATA                                                  ~22
   24    41    >   INIT_FCALL                                               'in_array'
         42        SEND_VAR                                                 !2
         43        SEND_VAL                                                 <array>
         44        DO_ICALL                                         $23     
         45      > JMPZ                                                     $23, ->50
   25    46    >   CONCAT                                           ~26     'Category+', !2
         47        FETCH_DIM_W                                      $24     !1, 'row5'
         48        ASSIGN_DIM                                               $24
         49        OP_DATA                                                  ~26
   28    50    >   INIT_FCALL                                               'in_array'
         51        SEND_VAR                                                 !2
         52        SEND_VAL                                                 <array>
         53        DO_ICALL                                         $27     
         54      > JMPZ                                                     $27, ->59
   29    55    >   CONCAT                                           ~30     'Category+', !2
         56        FETCH_DIM_W                                      $28     !1, 'row6'
         57        ASSIGN_DIM                                               $28
         58        OP_DATA                                                  ~30
   32    59    >   INIT_FCALL                                               'in_array'
         60        SEND_VAR                                                 !2
         61        SEND_VAL                                                 <array>
         62        DO_ICALL                                         $31     
         63      > JMPZ                                                     $31, ->68
   33    64    >   CONCAT                                           ~34     'Category+', !2
         65        FETCH_DIM_W                                      $32     !1, 'row7'
         66        ASSIGN_DIM                                               $32
         67        OP_DATA                                                  ~34
   36    68    >   INIT_FCALL                                               'in_array'
         69        SEND_VAR                                                 !2
         70        SEND_VAL                                                 <array>
         71        DO_ICALL                                         $35     
         72      > JMPZ                                                     $35, ->77
   37    73    >   CONCAT                                           ~38     'Category+', !2
         74        FETCH_DIM_W                                      $36     !1, 'row8'
         75        ASSIGN_DIM                                               $36
         76        OP_DATA                                                  ~38
   40    77    >   INIT_FCALL                                               'in_array'
         78        SEND_VAR                                                 !2
         79        SEND_VAL                                                 <array>
         80        DO_ICALL                                         $39     
         81      > JMPZ                                                     $39, ->86
   41    82    >   CONCAT                                           ~42     'Category+', !2
         83        FETCH_DIM_W                                      $40     !1, 'row9'
         84        ASSIGN_DIM                                               $40
         85        OP_DATA                                                  ~42
   45    86    >   INIT_FCALL                                               'in_array'
         87        SEND_VAR                                                 !2
         88        SEND_VAL                                                 <array>
         89        DO_ICALL                                         $43     
         90      > JMPZ                                                     $43, ->95
   46    91    >   CONCAT                                           ~46     'Category+', !2
         92        FETCH_DIM_W                                      $44     !1, 'row10'
         93        ASSIGN_DIM                                               $44
         94        OP_DATA                                                  ~46
   49    95    >   ASSIGN_DIM                                               !0
         96        OP_DATA                                                  !1
    6    97        PRE_INC                                                  !2
         98    >   IS_SMALLER_OR_EQUAL                                      !2, 28
         99      > JMPNZ                                                    ~49, ->5
   53   100    >   INIT_FCALL                                               'print_r'
        101        SEND_VAR                                                 !0
        102        DO_ICALL                                                 
        103      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.89 ms | 1409 KiB | 17 Q