3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = new stdClass(); $var->foo = 'bar'; $var2 = $var; debug_zval_dump($var->foo); unset($var2->foo); debug_zval_dump($var->foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6nRS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $var, !1 = $var2
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_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
    4     5        ASSIGN                                                   !1, !0
    6     6        INIT_FCALL                                               'debug_zval_dump'
          7        FETCH_OBJ_R                                      ~7      !0, 'foo'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
    7    10        UNSET_OBJ                                                !1, 'foo'
    8    11        INIT_FCALL                                               'debug_zval_dump'
         12        FETCH_OBJ_R                                      ~9      !0, 'foo'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.23 ms | 1398 KiB | 15 Q