3v4l.org

run code in 300+ PHP versions simultaneously
<?php array( 0 => array( "a" => "r1", "b" => "c1", "c" => "d1", ), 1 => array( "a" => "r1", "b" => "c1", "c" => "d2", ), 2 => array( "a" => "r1", "b" => "c1", "c" => "d3", ), 3 => array( "a" => "r1", "b" => "c2", "c" => "d1", ), 4 => array( "a" => "r1", "b" => "c2", "c" => "d3", ), 5 => array( "a" => "r1", "b" => "c3", "c" => "d1", ) ); $count = 0; for($i=1; $i<=3; $i++){ for($j=1; $j<=3; $j++){ $data[$count] = array( 'a' => '', 'b' => 'D'.$j, 'c' => 'C'.$i ); for($r=0; $r<9; $r++){ if(isset($rows[$r]) && $rows[$r]['b'] == 'C'.$i && $rows[$r]['c'] == 'D'.$j) { $data[$count] = array( 'a' => $rows[$r]['a'], 'b' => $rows[$r]['b'], 'c' => $rows[$r]['c'] ); } } $count++; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 3
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 5
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 3
Branch analysis from position: 49
Branch analysis from position: 3
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 14
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 5
Branch analysis from position: 46
Branch analysis from position: 5
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 39
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 14
Branch analysis from position: 42
Branch analysis from position: 14
Branch analysis from position: 39
Branch analysis from position: 27
Branch analysis from position: 21
filename:       /in/5jYc5
function name:  (null)
number of ops:  50
compiled vars:  !0 = $count, !1 = $i, !2 = $j, !3 = $data, !4 = $r, !5 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   ASSIGN                                                   !0, 0
   36     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->47
   37     3    >   ASSIGN                                                   !2, 1
          4      > JMP                                                      ->44
   39     5    >   INIT_ARRAY                                       ~10     '', 'a'
   40     6        CONCAT                                           ~11     'D', !2
          7        ADD_ARRAY_ELEMENT                                ~10     ~11, 'b'
   41     8        CONCAT                                           ~12     'C', !1
          9        ADD_ARRAY_ELEMENT                                ~10     ~12, 'c'
   38    10        ASSIGN_DIM                                               !3, !0
   41    11        OP_DATA                                                  ~10
   43    12        ASSIGN                                                   !4, 0
         13      > JMP                                                      ->40
   44    14    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~14     !5, !4
         15      > JMPZ_EX                                          ~14     ~14, ->21
         16    >   FETCH_DIM_R                                      ~15     !5, !4
         17        FETCH_DIM_R                                      ~16     ~15, 'b'
         18        CONCAT                                           ~17     'C', !1
         19        IS_EQUAL                                         ~18     ~16, ~17
         20        BOOL                                             ~14     ~18
         21    > > JMPZ_EX                                          ~14     ~14, ->27
         22    >   FETCH_DIM_R                                      ~19     !5, !4
         23        FETCH_DIM_R                                      ~20     ~19, 'c'
         24        CONCAT                                           ~21     'D', !2
         25        IS_EQUAL                                         ~22     ~20, ~21
         26        BOOL                                             ~14     ~22
         27    > > JMPZ                                                     ~14, ->39
   46    28    >   FETCH_DIM_R                                      ~24     !5, !4
         29        FETCH_DIM_R                                      ~25     ~24, 'a'
         30        INIT_ARRAY                                       ~26     ~25, 'a'
   47    31        FETCH_DIM_R                                      ~27     !5, !4
         32        FETCH_DIM_R                                      ~28     ~27, 'b'
         33        ADD_ARRAY_ELEMENT                                ~26     ~28, 'b'
   48    34        FETCH_DIM_R                                      ~29     !5, !4
         35        FETCH_DIM_R                                      ~30     ~29, 'c'
         36        ADD_ARRAY_ELEMENT                                ~26     ~30, 'c'
   45    37        ASSIGN_DIM                                               !3, !0
   48    38        OP_DATA                                                  ~26
   43    39    >   PRE_INC                                                  !4
         40    >   IS_SMALLER                                               !4, 9
         41      > JMPNZ                                                    ~32, ->14
   52    42    >   PRE_INC                                                  !0
   37    43        PRE_INC                                                  !2
         44    >   IS_SMALLER_OR_EQUAL                                      !2, 3
         45      > JMPNZ                                                    ~35, ->5
   36    46    >   PRE_INC                                                  !1
         47    >   IS_SMALLER_OR_EQUAL                                      !1, 3
         48      > JMPNZ                                                    ~37, ->3
   54    49    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.99 ms | 1390 KiB | 13 Q