3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = new \stdClass; $obj2 = new class{}; $obj3 = (object)[]; var_dump($obj1 == $obj2); var_dump($obj2 == $obj3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d3rDf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $obj1, !1 = $obj2, !2 = $obj3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        DECLARE_ANON_CLASS                               3.95253e-323    
          4        NEW                                              $7      $6
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $7
    5     7        CAST                                          8  ~10     <array>
          8        ASSIGN                                                   !2, ~10
    7     9        INIT_FCALL                                               'var_dump'
         10        IS_EQUAL                                         ~12     !0, !1
         11        SEND_VAL                                                 ~12
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        IS_EQUAL                                         ~14     !1, !2
         15        SEND_VAL                                                 ~14
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.36 ms | 1394 KiB | 15 Q