3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In project X abstract class A { abstract protected static function blah(); } final class B extends A { protected static function blah() { echo "blah\n"; } } // In project Y abstract class C extends A { public static function run() { B::blah(); } } C::run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PbURf
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_STATIC_METHOD_CALL                                  'C', 'run'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class A:
Function blah:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PbURf
function name:  blah
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function blah

End of class A.

Class B:
Function blah:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PbURf
function name:  blah
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'blah%0A'
   12     1      > RETURN                                                   null

End of function blah

End of class B.

Class C:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PbURf
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_STATIC_METHOD_CALL                                  'B', 'blah'
          1        DO_FCALL                                      0          
   20     2      > RETURN                                                   null

End of function run

Function blah:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PbURf
function name:  blah
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function blah

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
295.69 ms | 1007 KiB | 13 Q