3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $property; } class B extends A { public $property; } $b = new B; $b->property = 'foo'; var_dump( $b ); $a = new A; $a->property = 'bar'; var_dump( $a );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QIVCg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        ASSIGN_OBJ                                               !0, 'property'
          4        OP_DATA                                                  'foo'
   13     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   15     8        NEW                                              $7      'A'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $7
   16    11        ASSIGN_OBJ                                               !1, 'property'
         12        OP_DATA                                                  'bar'
   17    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:
138.31 ms | 997 KiB | 14 Q