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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.26 ms | 1403 KiB | 16 Q