3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(new stdClass, new stdClass, new stdClass); $array[0]->a = 10; $array[1]->a = 30; $array[2]->a = 20; for ($i = 0; $i < 3; $i++) { for ($j = 0; $j <= $i; $j++) { $x = $array[$i]; $y = $array[$j]; if ($x < $y) print("$i<$j "); if ($x > $y) print("$i>$j "); if ($x === $y) print("$i===$j "); print(" "); } print("\n"); } $array[0]->a = 10; $array[1]->a = 30; $array[2]->a = 20; for ($i = 0; $i < 3; $i++) { for ($j = 0; $j <= $i; $j++) { $x = $array[$i]; $y = $array[$j]; if ($x < $y) print("$i<$j "); if ($x > $y) print("$i>$j "); if ($x === $y) print("$i===$j "); print(" "); } print("\n"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 56, Position 2 = 21
Branch analysis from position: 56
1 jumps found. (Code = 42) Position 1 = 100
Branch analysis from position: 100
2 jumps found. (Code = 44) Position 1 = 102, Position 2 = 67
Branch analysis from position: 102
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
1 jumps found. (Code = 42) Position 1 = 96
Branch analysis from position: 96
2 jumps found. (Code = 44) Position 1 = 98, Position 2 = 69
Branch analysis from position: 98
2 jumps found. (Code = 44) Position 1 = 102, Position 2 = 67
Branch analysis from position: 102
Branch analysis from position: 67
Branch analysis from position: 69
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 80
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 82, Position 2 = 87
Branch analysis from position: 82
2 jumps found. (Code = 43) Position 1 = 89, Position 2 = 94
Branch analysis from position: 89
2 jumps found. (Code = 44) Position 1 = 98, Position 2 = 69
Branch analysis from position: 98
Branch analysis from position: 69
Branch analysis from position: 94
Branch analysis from position: 87
Branch analysis from position: 80
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 23
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 56, Position 2 = 21
Branch analysis from position: 56
Branch analysis from position: 21
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 41
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 48
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 23
Branch analysis from position: 52
Branch analysis from position: 23
Branch analysis from position: 48
Branch analysis from position: 41
Branch analysis from position: 34
filename:       /in/4aIDi
function name:  (null)
number of ops:  103
compiled vars:  !0 = $array, !1 = $i, !2 = $j, !3 = $x, !4 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $5      'stdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~7      $5
          3        NEW                                              $8      'stdClass'
          4        DO_FCALL                                      0          
          5        ADD_ARRAY_ELEMENT                                ~7      $8
          6        NEW                                              $10     'stdClass'
          7        DO_FCALL                                      0          
          8        ADD_ARRAY_ELEMENT                                ~7      $10
          9        ASSIGN                                                   !0, ~7
    4    10        FETCH_DIM_W                                      $13     !0, 0
         11        ASSIGN_OBJ                                               $13, 'a'
         12        OP_DATA                                                  10
    5    13        FETCH_DIM_W                                      $15     !0, 1
         14        ASSIGN_OBJ                                               $15, 'a'
         15        OP_DATA                                                  30
    6    16        FETCH_DIM_W                                      $17     !0, 2
         17        ASSIGN_OBJ                                               $17, 'a'
         18        OP_DATA                                                  20
    8    19        ASSIGN                                                   !1, 0
         20      > JMP                                                      ->54
    9    21    >   ASSIGN                                                   !2, 0
         22      > JMP                                                      ->50
   10    23    >   FETCH_DIM_R                                      ~21     !0, !1
         24        ASSIGN                                                   !3, ~21
   11    25        FETCH_DIM_R                                      ~23     !0, !2
         26        ASSIGN                                                   !4, ~23
   12    27        IS_SMALLER                                               !3, !4
         28      > JMPZ                                                     ~25, ->34
         29    >   ROPE_INIT                                     4  ~27     !1
         30        ROPE_ADD                                      1  ~27     ~27, '%3C'
         31        ROPE_ADD                                      2  ~27     ~27, !2
         32        ROPE_END                                      3  ~26     ~27, '+'
         33        ECHO                                                     ~26
   13    34    >   IS_SMALLER                                               !4, !3
         35      > JMPZ                                                     ~29, ->41
         36    >   ROPE_INIT                                     4  ~31     !1
         37        ROPE_ADD                                      1  ~31     ~31, '%3E'
         38        ROPE_ADD                                      2  ~31     ~31, !2
         39        ROPE_END                                      3  ~30     ~31, '+'
         40        ECHO                                                     ~30
   14    41    >   IS_IDENTICAL                                             !3, !4
         42      > JMPZ                                                     ~33, ->48
         43    >   ROPE_INIT                                     4  ~35     !1
         44        ROPE_ADD                                      1  ~35     ~35, '%3D%3D%3D'
         45        ROPE_ADD                                      2  ~35     ~35, !2
         46        ROPE_END                                      3  ~34     ~35, '+'
         47        ECHO                                                     ~34
   15    48    >   ECHO                                                     '++++++'
    9    49        PRE_INC                                                  !2
         50    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         51      > JMPNZ                                                    ~38, ->23
   17    52    >   ECHO                                                     '%0A'
    8    53        PRE_INC                                                  !1
         54    >   IS_SMALLER                                               !1, 3
         55      > JMPNZ                                                    ~40, ->21
   20    56    >   FETCH_DIM_W                                      $41     !0, 0
         57        ASSIGN_OBJ                                               $41, 'a'
         58        OP_DATA                                                  10
   21    59        FETCH_DIM_W                                      $43     !0, 1
         60        ASSIGN_OBJ                                               $43, 'a'
         61        OP_DATA                                                  30
   22    62        FETCH_DIM_W                                      $45     !0, 2
         63        ASSIGN_OBJ                                               $45, 'a'
         64        OP_DATA                                                  20
   24    65        ASSIGN                                                   !1, 0
         66      > JMP                                                      ->100
   25    67    >   ASSIGN                                                   !2, 0
         68      > JMP                                                      ->96
   26    69    >   FETCH_DIM_R                                      ~49     !0, !1
         70        ASSIGN                                                   !3, ~49
   27    71        FETCH_DIM_R                                      ~51     !0, !2
         72        ASSIGN                                                   !4, ~51
   28    73        IS_SMALLER                                               !3, !4
         74      > JMPZ                                                     ~53, ->80
         75    >   ROPE_INIT                                     4  ~55     !1
         76        ROPE_ADD                                      1  ~55     ~55, '%3C'
         77        ROPE_ADD                                      2  ~55     ~55, !2
         78        ROPE_END                                      3  ~54     ~55, '+'
         79        ECHO                                                     ~54
   29    80    >   IS_SMALLER                                               !4, !3
         81      > JMPZ                                                     ~57, ->87
         82    >   ROPE_INIT                                     4  ~59     !1
         83        ROPE_ADD                                      1  ~59     ~59, '%3E'
         84        ROPE_ADD                                      2  ~59     ~59, !2
         85        ROPE_END                                      3  ~58     ~59, '+'
         86        ECHO                                                     ~58
   30    87    >   IS_IDENTICAL                                             !3, !4
         88      > JMPZ                                                     ~61, ->94
         89    >   ROPE_INIT                                     4  ~63     !1
         90        ROPE_ADD                                      1  ~63     ~63, '%3D%3D%3D'
         91        ROPE_ADD                                      2  ~63     ~63, !2
         92        ROPE_END                                      3  ~62     ~63, '+'
         93        ECHO                                                     ~62
   31    94    >   ECHO                                                     '++++++'
   25    95        PRE_INC                                                  !2
         96    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         97      > JMPNZ                                                    ~66, ->69
   33    98    >   ECHO                                                     '%0A'
   24    99        PRE_INC                                                  !1
        100    >   IS_SMALLER                                               !1, 3
        101      > JMPNZ                                                    ~68, ->67
   34   102    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.53 ms | 1403 KiB | 13 Q