3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.13 ms | 1394 KiB | 15 Q