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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4FMIf
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        NEW                                              $5      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'esam'
          6        OP_DATA                                                  $5
   16     7        FETCH_OBJ_R                                      ~7      !0, 'esam'
          8        FETCH_OBJ_R                                      ~8      ~7, 'mase'
          9        ECHO                                                     ~8
   17    10      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.72 ms | 1392 KiB | 13 Q