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"); } 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 = 101
Branch analysis from position: 101
2 jumps found. (Code = 44) Position 1 = 103, Position 2 = 68
Branch analysis from position: 103
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 97
Branch analysis from position: 97
2 jumps found. (Code = 44) Position 1 = 99, Position 2 = 70
Branch analysis from position: 99
2 jumps found. (Code = 44) Position 1 = 103, Position 2 = 68
Branch analysis from position: 103
Branch analysis from position: 68
Branch analysis from position: 70
2 jumps found. (Code = 43) Position 1 = 76, Position 2 = 81
Branch analysis from position: 76
2 jumps found. (Code = 43) Position 1 = 83, Position 2 = 88
Branch analysis from position: 83
2 jumps found. (Code = 43) Position 1 = 90, Position 2 = 95
Branch analysis from position: 90
2 jumps found. (Code = 44) Position 1 = 99, Position 2 = 70
Branch analysis from position: 99
Branch analysis from position: 70
Branch analysis from position: 95
Branch analysis from position: 88
Branch analysis from position: 81
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/kie7L
function name:  (null)
number of ops:  104
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    >   ECHO                                                     '%0A'
   22    57        FETCH_DIM_W                                      $41     !0, 0
         58        ASSIGN_OBJ                                               $41, 'a'
         59        OP_DATA                                                  10
   23    60        FETCH_DIM_W                                      $43     !0, 1
         61        ASSIGN_OBJ                                               $43, 'a'
         62        OP_DATA                                                  30
   24    63        FETCH_DIM_W                                      $45     !0, 2
         64        ASSIGN_OBJ                                               $45, 'a'
         65        OP_DATA                                                  20
   26    66        ASSIGN                                                   !1, 0
         67      > JMP                                                      ->101
   27    68    >   ASSIGN                                                   !2, 0
         69      > JMP                                                      ->97
   28    70    >   FETCH_DIM_R                                      ~49     !0, !1
         71        ASSIGN                                                   !3, ~49
   29    72        FETCH_DIM_R                                      ~51     !0, !2
         73        ASSIGN                                                   !4, ~51
   30    74        IS_SMALLER                                               !3, !4
         75      > JMPZ                                                     ~53, ->81
         76    >   ROPE_INIT                                     4  ~55     !1
         77        ROPE_ADD                                      1  ~55     ~55, '%3C'
         78        ROPE_ADD                                      2  ~55     ~55, !2
         79        ROPE_END                                      3  ~54     ~55, '+'
         80        ECHO                                                     ~54
   31    81    >   IS_SMALLER                                               !4, !3
         82      > JMPZ                                                     ~57, ->88
         83    >   ROPE_INIT                                     4  ~59     !1
         84        ROPE_ADD                                      1  ~59     ~59, '%3E'
         85        ROPE_ADD                                      2  ~59     ~59, !2
         86        ROPE_END                                      3  ~58     ~59, '+'
         87        ECHO                                                     ~58
   32    88    >   IS_IDENTICAL                                             !3, !4
         89      > JMPZ                                                     ~61, ->95
         90    >   ROPE_INIT                                     4  ~63     !1
         91        ROPE_ADD                                      1  ~63     ~63, '%3D%3D%3D'
         92        ROPE_ADD                                      2  ~63     ~63, !2
         93        ROPE_END                                      3  ~62     ~63, '+'
         94        ECHO                                                     ~62
   33    95    >   ECHO                                                     '++++++'
   27    96        PRE_INC                                                  !2
         97    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         98      > JMPNZ                                                    ~66, ->70
   35    99    >   ECHO                                                     '%0A'
   26   100        PRE_INC                                                  !1
        101    >   IS_SMALLER                                               !1, 3
        102      > JMPNZ                                                    ~68, ->68
   36   103    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.62 ms | 1403 KiB | 13 Q