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"); }
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 = 62) Position 1 = -2
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/G1BMN
function name:  (null)
number of ops:  57
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
   18    56    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1399 KiB | 13 Q