3v4l.org

run code in 500+ PHP versions simultaneously
<?php $obj = new stdClass; $a = $obj; $a->foo = 'foo'; var_dump($obj === $a); var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BU1O0
function name:  (null)
number of ops:  14
compiled vars:  !0 = $obj, !1 = $a
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        ASSIGN                                                       !1, !0
    6     4        ASSIGN_OBJ                                                   !1, 'foo'
          5        OP_DATA                                                      'foo'
    7     6        INIT_FCALL                                                   'var_dump'
          7        IS_IDENTICAL                                         ~7      !0, !1
          8        SEND_VAL                                                     ~7
          9        DO_ICALL                                                     
    8    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.93 ms | 1716 KiB | 14 Q