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) { if(in_array($_row, array('row1'))) { $_sub_categories[1] = $_row; } if(in_array($_row, array('row2','row3','row4'))) { $_sub_categories[2] = $_row; } if(in_array($_row, array('row5'))) { $_sub_categories[3] = $_row; } if(in_array($_row, array('row6','row7','row8','row9','row10'))) { $_sub_categories[4] = $_row; } } foreach($_sub_categories as $_row):?> <ul> <?php $j = 0; ?> <?php foreach($_row as $_sub_category): $j++; ?> <li <?php if($j==1) { echo 'class="first"'; } ?>><?php echo $_sub_category; ?></li> <?php endforeach; ?> </ul> <?php endforeach; ?>
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 = 115
Branch analysis from position: 97
2 jumps found. (Code = 78) Position 1 = 98, Position 2 = 115
Branch analysis from position: 98
2 jumps found. (Code = 43) Position 1 = 100, Position 2 = 102
Branch analysis from position: 100
2 jumps found. (Code = 43) Position 1 = 104, Position 2 = 106
Branch analysis from position: 104
2 jumps found. (Code = 43) Position 1 = 108, Position 2 = 110
Branch analysis from position: 108
2 jumps found. (Code = 43) Position 1 = 112, Position 2 = 114
Branch analysis from position: 112
1 jumps found. (Code = 42) Position 1 = 97
Branch analysis from position: 97
Branch analysis from position: 114
Branch analysis from position: 110
Branch analysis from position: 106
Branch analysis from position: 102
Branch analysis from position: 115
2 jumps found. (Code = 77) Position 1 = 117, Position 2 = 135
Branch analysis from position: 117
2 jumps found. (Code = 78) Position 1 = 118, Position 2 = 135
Branch analysis from position: 118
2 jumps found. (Code = 77) Position 1 = 122, Position 2 = 132
Branch analysis from position: 122
2 jumps found. (Code = 78) Position 1 = 123, Position 2 = 132
Branch analysis from position: 123
2 jumps found. (Code = 43) Position 1 = 127, Position 2 = 128
Branch analysis from position: 127
1 jumps found. (Code = 42) Position 1 = 122
Branch analysis from position: 122
Branch analysis from position: 128
Branch analysis from position: 132
1 jumps found. (Code = 42) Position 1 = 117
Branch analysis from position: 117
Branch analysis from position: 132
Branch analysis from position: 135
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 135
Branch analysis from position: 115
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/1CSvs
function name:  (null)
number of ops:  137
compiled vars:  !0 = $_rows, !1 = $i, !2 = $_row, !3 = $_sub_categories, !4 = $j, !5 = $_sub_category
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                                         $8      
          7      > JMPZ                                                     $8, ->12
    7     8    >   CONCAT                                           ~11     'Category+', !1
          9        FETCH_DIM_W                                      $9      !0, 'row1'
         10        ASSIGN_DIM                                               $9
         11        OP_DATA                                                  ~11
   10    12    >   INIT_FCALL                                               'in_array'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 <array>
         15        DO_ICALL                                         $12     
         16      > JMPZ                                                     $12, ->21
   11    17    >   CONCAT                                           ~15     'Category+', !1
         18        FETCH_DIM_W                                      $13     !0, 'row2'
         19        ASSIGN_DIM                                               $13
         20        OP_DATA                                                  ~15
   14    21    >   INIT_FCALL                                               'in_array'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 <array>
         24        DO_ICALL                                         $16     
         25      > JMPZ                                                     $16, ->30
   15    26    >   CONCAT                                           ~19     'Category+', !1
         27        FETCH_DIM_W                                      $17     !0, 'row3'
         28        ASSIGN_DIM                                               $17
         29        OP_DATA                                                  ~19
   18    30    >   INIT_FCALL                                               'in_array'
         31        SEND_VAR                                                 !1
         32        SEND_VAL                                                 <array>
         33        DO_ICALL                                         $20     
         34      > JMPZ                                                     $20, ->39
   19    35    >   CONCAT                                           ~23     'Category+', !1
         36        FETCH_DIM_W                                      $21     !0, 'row4'
         37        ASSIGN_DIM                                               $21
         38        OP_DATA                                                  ~23
   22    39    >   INIT_FCALL                                               'in_array'
         40        SEND_VAR                                                 !1
         41        SEND_VAL                                                 <array>
         42        DO_ICALL                                         $24     
         43      > JMPZ                                                     $24, ->48
   23    44    >   CONCAT                                           ~27     'Category+', !1
         45        FETCH_DIM_W                                      $25     !0, 'row5'
         46        ASSIGN_DIM                                               $25
         47        OP_DATA                                                  ~27
   26    48    >   INIT_FCALL                                               'in_array'
         49        SEND_VAR                                                 !1
         50        SEND_VAL                                                 <array>
         51        DO_ICALL                                         $28     
         52      > JMPZ                                                     $28, ->57
   27    53    >   CONCAT                                           ~31     'Category+', !1
         54        FETCH_DIM_W                                      $29     !0, 'row6'
         55        ASSIGN_DIM                                               $29
         56        OP_DATA                                                  ~31
   30    57    >   INIT_FCALL                                               'in_array'
         58        SEND_VAR                                                 !1
         59        SEND_VAL                                                 <array>
         60        DO_ICALL                                         $32     
         61      > JMPZ                                                     $32, ->66
   31    62    >   CONCAT                                           ~35     'Category+', !1
         63        FETCH_DIM_W                                      $33     !0, 'row7'
         64        ASSIGN_DIM                                               $33
         65        OP_DATA                                                  ~35
   34    66    >   INIT_FCALL                                               'in_array'
         67        SEND_VAR                                                 !1
         68        SEND_VAL                                                 <array>
         69        DO_ICALL                                         $36     
         70      > JMPZ                                                     $36, ->75
   35    71    >   CONCAT                                           ~39     'Category+', !1
         72        FETCH_DIM_W                                      $37     !0, 'row8'
         73        ASSIGN_DIM                                               $37
         74        OP_DATA                                                  ~39
   38    75    >   INIT_FCALL                                               'in_array'
         76        SEND_VAR                                                 !1
         77        SEND_VAL                                                 <array>
         78        DO_ICALL                                         $40     
         79      > JMPZ                                                     $40, ->84
   39    80    >   CONCAT                                           ~43     'Category+', !1
         81        FETCH_DIM_W                                      $41     !0, 'row9'
         82        ASSIGN_DIM                                               $41
         83        OP_DATA                                                  ~43
   43    84    >   INIT_FCALL                                               'in_array'
         85        SEND_VAR                                                 !1
         86        SEND_VAL                                                 <array>
         87        DO_ICALL                                         $44     
         88      > JMPZ                                                     $44, ->93
   44    89    >   CONCAT                                           ~47     'Category+', !1
         90        FETCH_DIM_W                                      $45     !0, 'row10'
         91        ASSIGN_DIM                                               $45
         92        OP_DATA                                                  ~47
    4    93    >   PRE_INC                                                  !1
         94    >   IS_SMALLER_OR_EQUAL                                      !1, 28
         95      > JMPNZ                                                    ~49, ->3
   49    96    > > FE_RESET_R                                       $50     !0, ->115
         97    > > FE_FETCH_R                                               $50, !2, ->115
   50    98    >   IN_ARRAY                                                 !2, <array>
         99      > JMPZ                                                     ~51, ->102
   51   100    >   ASSIGN_DIM                                               !3, 1
        101        OP_DATA                                                  !2
   54   102    >   IN_ARRAY                                                 !2, <array>
        103      > JMPZ                                                     ~53, ->106
   55   104    >   ASSIGN_DIM                                               !3, 2
        105        OP_DATA                                                  !2
   58   106    >   IN_ARRAY                                                 !2, <array>
        107      > JMPZ                                                     ~55, ->110
   59   108    >   ASSIGN_DIM                                               !3, 3
        109        OP_DATA                                                  !2
   62   110    >   IN_ARRAY                                                 !2, <array>
        111      > JMPZ                                                     ~57, ->114
   63   112    >   ASSIGN_DIM                                               !3, 4
        113        OP_DATA                                                  !2
   49   114    > > JMP                                                      ->97
        115    >   FE_FREE                                                  $50
   69   116      > FE_RESET_R                                       $59     !3, ->135
        117    > > FE_FETCH_R                                               $59, !2, ->135
   70   118    >   ECHO                                                     '++++%3Cul%3E%0A++++++++'
   71   119        ASSIGN                                                   !4, 0
   72   120        ECHO                                                     '++++++++'
        121      > FE_RESET_R                                       $61     !2, ->132
        122    > > FE_FETCH_R                                               $61, !5, ->132
        123    >   PRE_INC                                                  !4
   73   124        ECHO                                                     '++++++++%3Cli+'
        125        IS_EQUAL                                                 !4, 1
        126      > JMPZ                                                     ~63, ->128
        127    >   ECHO                                                     'class%3D%22first%22'
        128    >   ECHO                                                     '%3E'
        129        ECHO                                                     !5
        130        ECHO                                                     '%3C%2Fli%3E%0A++++%09'
   72   131      > JMP                                                      ->122
        132    >   FE_FREE                                                  $61
   75   133        ECHO                                                     '++++%3C%2Ful%3E%0A'
   69   134      > JMP                                                      ->117
        135    >   FE_FREE                                                  $59
   76   136      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.86 ms | 1408 KiB | 15 Q