3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $b = new stdClass; $c = new stdClass; $array1 = array($a, $b, $c); for ($i = 0; $i < 3; $i++) { for ($j = 0; $j <= $i; $j++) { $x = $array1[$i]; $y = $array1[$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 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 15
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 17
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 15
Branch analysis from position: 50
Branch analysis from position: 15
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 35
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 42
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 17
Branch analysis from position: 46
Branch analysis from position: 17
Branch analysis from position: 42
Branch analysis from position: 35
Branch analysis from position: 28
filename:       /in/CKFjT
function name:  (null)
number of ops:  51
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $array1, !4 = $i, !5 = $j, !6 = $x, !7 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $8      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $8
    4     3        NEW                                              $11     'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $11
    5     6        NEW                                              $14     'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $14
    7     9        INIT_ARRAY                                       ~17     !0
         10        ADD_ARRAY_ELEMENT                                ~17     !1
         11        ADD_ARRAY_ELEMENT                                ~17     !2
         12        ASSIGN                                                   !3, ~17
    9    13        ASSIGN                                                   !4, 0
         14      > JMP                                                      ->48
   10    15    >   ASSIGN                                                   !5, 0
         16      > JMP                                                      ->44
   11    17    >   FETCH_DIM_R                                      ~21     !3, !4
         18        ASSIGN                                                   !6, ~21
   12    19        FETCH_DIM_R                                      ~23     !3, !5
         20        ASSIGN                                                   !7, ~23
   13    21        IS_SMALLER                                               !6, !7
         22      > JMPZ                                                     ~25, ->28
         23    >   ROPE_INIT                                     4  ~27     !4
         24        ROPE_ADD                                      1  ~27     ~27, '%3C'
         25        ROPE_ADD                                      2  ~27     ~27, !5
         26        ROPE_END                                      3  ~26     ~27, '+'
         27        ECHO                                                     ~26
   14    28    >   IS_SMALLER                                               !7, !6
         29      > JMPZ                                                     ~29, ->35
         30    >   ROPE_INIT                                     4  ~31     !4
         31        ROPE_ADD                                      1  ~31     ~31, '%3E'
         32        ROPE_ADD                                      2  ~31     ~31, !5
         33        ROPE_END                                      3  ~30     ~31, '+'
         34        ECHO                                                     ~30
   15    35    >   IS_IDENTICAL                                             !6, !7
         36      > JMPZ                                                     ~33, ->42
         37    >   ROPE_INIT                                     4  ~35     !4
         38        ROPE_ADD                                      1  ~35     ~35, '%21%3D'
         39        ROPE_ADD                                      2  ~35     ~35, !5
         40        ROPE_END                                      3  ~34     ~35, '+'
         41        ECHO                                                     ~34
   16    42    >   ECHO                                                     '+++'
   10    43        PRE_INC                                                  !5
         44    >   IS_SMALLER_OR_EQUAL                                      !5, !4
         45      > JMPNZ                                                    ~38, ->17
   18    46    >   ECHO                                                     '%0A'
    9    47        PRE_INC                                                  !4
         48    >   IS_SMALLER                                               !4, 3
         49      > JMPNZ                                                    ~40, ->15
   19    50    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.63 ms | 1399 KiB | 13 Q