3v4l.org

run code in 300+ PHP versions simultaneously
<?php $st = new stdClass(); $st->q = new stdClass(); $st->q->k = 1; $st->q->w = 2; $kl = $st; unset($kl->q->k); print_r($st); print_r($k);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sNHQG
function name:  (null)
number of ops:  23
compiled vars:  !0 = $st, !1 = $kl, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $7      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'q'
          6        OP_DATA                                                  $7
    5     7        FETCH_OBJ_W                                      $9      !0, 'q'
          8        ASSIGN_OBJ                                               $9, 'k'
          9        OP_DATA                                                  1
    6    10        FETCH_OBJ_W                                      $11     !0, 'q'
         11        ASSIGN_OBJ                                               $11, 'w'
         12        OP_DATA                                                  2
    8    13        ASSIGN                                                   !1, !0
    9    14        FETCH_OBJ_UNSET                                  $14     !1, 'q'
         15        UNSET_OBJ                                                $14, 'k'
   10    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.24 ms | 1395 KiB | 15 Q