3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A{ protected $foo = 'I m foo'; } class B extends A{ static function sayFoo(){ echo parent::$foo; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HFaBf
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Class A: [no user functions]
Class B:
Function sayfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HFaBf
function name:  sayFoo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'foo'
          1        ECHO                                                     ~0
   10     2      > RETURN                                                   null

End of function sayfoo

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.02 ms | 1392 KiB | 13 Q