3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { private static $name = 'a'; public static function getName() { echo static::$name; } } class b extends a { private static $name = 'b'; } b::getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Zlns
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'b', 'getName'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function getname

End of class a.

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

End of function getname

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
268.86 ms | 1393 KiB | 14 Q