3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $b = new stdClass(); $a->foo = 1; $b->foo = 1; print_r(array( $a == $b, $a === $b ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5lJZq
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    6     6        ASSIGN_OBJ                                               !0, 'foo'
          7        OP_DATA                                                  1
    7     8        ASSIGN_OBJ                                               !1, 'foo'
          9        OP_DATA                                                  1
    9    10        INIT_FCALL                                               'print_r'
   10    11        IS_EQUAL                                         ~10     !0, !1
         12        INIT_ARRAY                                       ~11     ~10
   11    13        IS_IDENTICAL                                     ~12     !0, !1
         14        ADD_ARRAY_ELEMENT                                ~11     ~12
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1394 KiB | 15 Q