3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function who() { var_dump(get_called_class()); } } class B extends A { public static function who() { parent::who(); } } B::who(); call_user_func(array('B', 'parent::who'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uon8H
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                  'B', 'who'
          1        DO_FCALL                                      0          
   17     2        INIT_USER_CALL                                0          'call_user_func', <array>
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class A:
Function who:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uon8H
function name:  who
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        GET_CALLED_CLASS                                 ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    7     4      > RETURN                                                   null

End of function who

End of class A.

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

End of function who

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.05 ms | 1395 KiB | 15 Q