3v4l.org

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

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

End of function load

End of class Test.

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

End of function load

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.46 ms | 1393 KiB | 13 Q