3v4l.org

run code in 200+ PHP versions simultaneously
<?php $o= new stdclass; $o->a= 'b'; $o->b= 'c'; $o2= $o; $o2->a= 'd'; var_dump($o); var_dump($o2); $o2->b = 'foo'; var_dump($o); var_dump($o2); $o3= clone $o; $o3->a= 'e'; var_dump($o); var_dump($o3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rN6kU
function name:  (null)
number of ops:  35
compiled vars:  !0 = $o, !1 = $o2, !2 = $o3
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   NEW                                              $3      :65
         1        DO_FCALL                                      0          
         2        QM_ASSIGN                                                !0
   5     3        ASSIGN_SUB                                    8          !0, 'a'
         4        OP_DATA                                                  'b'
   6     5        ASSIGN_SUB                                   32          !0, 'b'
         6        OP_DATA                                                  'c'
   8     7        QM_ASSIGN                                                !1
   9     8        ASSIGN_SUB                                   56          !1, 'a'
         9        OP_DATA                                                  'd'
  11    10        INIT_FCALL                                               'var_dump'
        11        SEND_VAR                                                 !0
        12        DO_ICALL                                                 
  12    13        INIT_FCALL                                               'var_dump'
        14        SEND_VAR                                                 !1
        15        DO_ICALL                                                 
  14    16        ASSIGN_SUB                                   96          !1, 'b'
        17        OP_DATA                                                  'foo'
  16    18        INIT_FCALL                                               'var_dump'
        19        SEND_VAR                                                 !0
        20        DO_ICALL                                                 
  17    21        INIT_FCALL                                               'var_dump'
        22        SEND_VAR                                                 !1
        23        DO_ICALL                                                 
  19    24        CLONE                                            ~15     !0
        25        QM_ASSIGN                                                !2
  20    26        ASSIGN_SUB                                  136          !2, 'a'
        27        OP_DATA                                                  'e'
  21    28        INIT_FCALL                                               'var_dump'
        29        SEND_VAR                                                 !0
        30        DO_ICALL                                                 
  22    31        INIT_FCALL                                               'var_dump'
        32        SEND_VAR                                                 !2
        33        DO_ICALL                                                 
        34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0