3v4l.org

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

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.32 ms | 1394 KiB | 15 Q