3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Derp { public $derp; } $a = new Derp(); $a->derp = 'test'; $b = clone $a; $b->derp = 'derp'; echo $a->derp;
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/eYJhp
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   6     1        NEW                                              $3      :-5
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
   7     4        ASSIGN_OBJ                                               !0, 'derp'
         5        OP_DATA                                                  'test'
   9     6        CLONE                                            ~7      !0
         7        ASSIGN                                                   !1, ~7
  10     8        ASSIGN_OBJ                                               !1, 'derp'
         9        OP_DATA                                                  'derp'
  12    10        FETCH_OBJ_R                                      $10     !0, 'derp'
        11        ECHO                                                     $10
        12      > RETURN                                                   1

Class Derp: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.2.0