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 . "\n"; $c = clone $a; var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JKJ4Y
function name:  (null)
number of ops:  17
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        CONCAT                                           ~10     ~9, '%0A'
         10        ECHO                                                     ~10
   18    11        CLONE                                            ~11     !0
         12        ASSIGN                                                   !1, ~11
   20    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.88 ms | 1386 KiB | 15 Q