3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instance1 = new StdClass(); $instance2 = $instance1; $instance1->my_property = 1; var_dump($instance2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FOdbQ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $instance1, !1 = $instance2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN                                                   !1, !0
    5     4        ASSIGN_OBJ                                               !0, 'my_property'
          5        OP_DATA                                                  1
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.74 ms | 1394 KiB | 15 Q