3v4l.org

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

Class Derp: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.88 ms | 1393 KiB | 13 Q