3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array(new stdClass, new stdClass, new stdClass); 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 = 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 = 62) Position 1 = -2
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/gl32M
function name:  (null)
number of ops:  48
compiled vars:  !0 = $array1, !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_IDENTICAL                                             !3, !4
         33      > JMPZ                                                     ~27, ->39
         34    >   ROPE_INIT                                     4  ~29     !1
         35        ROPE_ADD                                      1  ~29     ~29, '%21%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
   15    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.17 ms | 1399 KiB | 13 Q