3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.74 ms | 1409 KiB | 17 Q