3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1404 KiB | 17 Q