3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { public int $a, $b; } $a = new x(); $a->a = 1; $a->b = 2; $b = new x(); $b->b = 2; $b->a = 1; var_dump($a == $b); // true identical, whatever the order var_dump($a === $b); // false identical, but not the order ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/isKLn
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'x'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    8     3        ASSIGN_OBJ                                                   !0, 'a'
          4        OP_DATA                                                      1
    9     5        ASSIGN_OBJ                                                   !0, 'b'
          6        OP_DATA                                                      2
   11     7        NEW                                                  $7      'x'
          8        DO_FCALL                                          0          
          9        ASSIGN                                                       !1, $7
   12    10        ASSIGN_OBJ                                                   !1, 'b'
         11        OP_DATA                                                      2
   13    12        ASSIGN_OBJ                                                   !1, 'a'
         13        OP_DATA                                                      1
   15    14        INIT_FCALL                                                   'var_dump'
         15        IS_EQUAL                                             ~12     !0, !1
         16        SEND_VAL                                                     ~12
         17        DO_ICALL                                                     
   16    18        INIT_FCALL                                                   'var_dump'
         19        IS_IDENTICAL                                         ~14     !0, !1
         20        SEND_VAL                                                     ~14
         21        DO_ICALL                                                     
   18    22      > RETURN                                                       1

Class x: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.02 ms | 1331 KiB | 14 Q