3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $esam = 10; } class B { public $mase = 20; } $a = new A; $a->esam = new B; echo $a->esam->mase; $c = clone $a; var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GcUsm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        NEW                                              $6      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'esam'
          6        OP_DATA                                                  $6
   16     7        FETCH_OBJ_R                                      ~8      !0, 'esam'
          8        FETCH_OBJ_R                                      ~9      ~8, 'mase'
          9        ECHO                                                     ~9
   18    10        CLONE                                            ~10     !0
         11        ASSIGN                                                   !1, ~10
   20    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.79 ms | 1385 KiB | 15 Q