3v4l.org

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