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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.81 ms | 1404 KiB | 17 Q