3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(new stdClass, new stdClass, new stdClass); 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 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 12
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 92
Branch analysis from position: 92
2 jumps found. (Code = 44) Position 1 = 94, Position 2 = 59
Branch analysis from position: 94
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 88
Branch analysis from position: 88
2 jumps found. (Code = 44) Position 1 = 90, Position 2 = 61
Branch analysis from position: 90
2 jumps found. (Code = 44) Position 1 = 94, Position 2 = 59
Branch analysis from position: 94
Branch analysis from position: 59
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 72
Branch analysis from position: 67
2 jumps found. (Code = 43) Position 1 = 74, Position 2 = 79
Branch analysis from position: 74
2 jumps found. (Code = 43) Position 1 = 81, Position 2 = 86
Branch analysis from position: 81
2 jumps found. (Code = 44) Position 1 = 90, Position 2 = 61
Branch analysis from position: 90
Branch analysis from position: 61
Branch analysis from position: 86
Branch analysis from position: 79
Branch analysis from position: 72
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 14
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 12
Branch analysis from position: 47
Branch analysis from position: 12
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 39
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 14
Branch analysis from position: 43
Branch analysis from position: 14
Branch analysis from position: 39
Branch analysis from position: 32
Branch analysis from position: 25
filename:       /in/vMA0k
function name:  (null)
number of ops:  95
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
    5    10        ASSIGN                                                   !1, 0
         11      > JMP                                                      ->45
    6    12    >   ASSIGN                                                   !2, 0
         13      > JMP                                                      ->41
    7    14    >   FETCH_DIM_R                                      ~15     !0, !1
         15        ASSIGN                                                   !3, ~15
    8    16        FETCH_DIM_R                                      ~17     !0, !2
         17        ASSIGN                                                   !4, ~17
    9    18        IS_SMALLER                                               !3, !4
         19      > JMPZ                                                     ~19, ->25
         20    >   ROPE_INIT                                     4  ~21     !1
         21        ROPE_ADD                                      1  ~21     ~21, '%3C'
         22        ROPE_ADD                                      2  ~21     ~21, !2
         23        ROPE_END                                      3  ~20     ~21, '+'
         24        ECHO                                                     ~20
   10    25    >   IS_SMALLER                                               !4, !3
         26      > JMPZ                                                     ~23, ->32
         27    >   ROPE_INIT                                     4  ~25     !1
         28        ROPE_ADD                                      1  ~25     ~25, '%3E'
         29        ROPE_ADD                                      2  ~25     ~25, !2
         30        ROPE_END                                      3  ~24     ~25, '+'
         31        ECHO                                                     ~24
   11    32    >   IS_EQUAL                                                 !3, !4
         33      > JMPZ                                                     ~27, ->39
         34    >   ROPE_INIT                                     4  ~29     !1
         35        ROPE_ADD                                      1  ~29     ~29, '%3D%3D%3D'
         36        ROPE_ADD                                      2  ~29     ~29, !2
         37        ROPE_END                                      3  ~28     ~29, '+'
         38        ECHO                                                     ~28
   12    39    >   ECHO                                                     '++++++'
    6    40        PRE_INC                                                  !2
         41    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         42      > JMPNZ                                                    ~32, ->14
   14    43    >   ECHO                                                     '%0A'
    5    44        PRE_INC                                                  !1
         45    >   IS_SMALLER                                               !1, 3
         46      > JMPNZ                                                    ~34, ->12
   17    47    >   ECHO                                                     '%0A'
   19    48        FETCH_DIM_W                                      $35     !0, 0
         49        ASSIGN_OBJ                                               $35, 'a'
         50        OP_DATA                                                  10
   20    51        FETCH_DIM_W                                      $37     !0, 1
         52        ASSIGN_OBJ                                               $37, 'a'
         53        OP_DATA                                                  30
   21    54        FETCH_DIM_W                                      $39     !0, 2
         55        ASSIGN_OBJ                                               $39, 'a'
         56        OP_DATA                                                  20
   23    57        ASSIGN                                                   !1, 0
         58      > JMP                                                      ->92
   24    59    >   ASSIGN                                                   !2, 0
         60      > JMP                                                      ->88
   25    61    >   FETCH_DIM_R                                      ~43     !0, !1
         62        ASSIGN                                                   !3, ~43
   26    63        FETCH_DIM_R                                      ~45     !0, !2
         64        ASSIGN                                                   !4, ~45
   27    65        IS_SMALLER                                               !3, !4
         66      > JMPZ                                                     ~47, ->72
         67    >   ROPE_INIT                                     4  ~49     !1
         68        ROPE_ADD                                      1  ~49     ~49, '%3C'
         69        ROPE_ADD                                      2  ~49     ~49, !2
         70        ROPE_END                                      3  ~48     ~49, '+'
         71        ECHO                                                     ~48
   28    72    >   IS_SMALLER                                               !4, !3
         73      > JMPZ                                                     ~51, ->79
         74    >   ROPE_INIT                                     4  ~53     !1
         75        ROPE_ADD                                      1  ~53     ~53, '%3E'
         76        ROPE_ADD                                      2  ~53     ~53, !2
         77        ROPE_END                                      3  ~52     ~53, '+'
         78        ECHO                                                     ~52
   29    79    >   IS_EQUAL                                                 !3, !4
         80      > JMPZ                                                     ~55, ->86
         81    >   ROPE_INIT                                     4  ~57     !1
         82        ROPE_ADD                                      1  ~57     ~57, '%3D%3D%3D'
         83        ROPE_ADD                                      2  ~57     ~57, !2
         84        ROPE_END                                      3  ~56     ~57, '+'
         85        ECHO                                                     ~56
   30    86    >   ECHO                                                     '++++++'
   24    87        PRE_INC                                                  !2
         88    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         89      > JMPNZ                                                    ~60, ->61
   32    90    >   ECHO                                                     '%0A'
   23    91        PRE_INC                                                  !1
         92    >   IS_SMALLER                                               !1, 3
         93      > JMPNZ                                                    ~62, ->59
   33    94    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.64 ms | 1403 KiB | 13 Q