3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Base { protected static string $message; public static function f() : void { echo static::$message; } } final class Test extends Base { protected static string $message = "Okey :)"; } Base::f(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H8Yh3
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'Base', 'f'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   1

Class Base:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H8Yh3
function name:  f
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'message'
          1        ECHO                                                     ~0
    6     2      > RETURN                                                   null

End of function f

End of class Base.

Class Test:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H8Yh3
function name:  f
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'message'
          1        ECHO                                                     ~0
    6     2      > RETURN                                                   null

End of function f

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.08 ms | 1006 KiB | 13 Q