3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.59 ms | 1404 KiB | 17 Q