3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! class MyClass { var $value; } $a = new MyClass; $a->newValue = 1; $b = $a; $b->newValue = 2; echo $a->newValue;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PMMjh
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        ASSIGN_OBJ                                               !0, 'newValue'
          4        OP_DATA                                                  1
   12     5        ASSIGN                                                   !1, !0
   14     6        ASSIGN_OBJ                                               !1, 'newValue'
          7        OP_DATA                                                  2
   16     8        FETCH_OBJ_R                                      ~8      !0, 'newValue'
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.77 ms | 1392 KiB | 13 Q