3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { static function load() { echo get_class(); } } class Child extends Test { } Child::load();
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Ge138
function name:  (null)
number of ops:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   9     1        NOP                                                      
         2        NOP                                                      
  12     3        INIT_STATIC_METHOD_CALL                                  'Child', 'load'
         4        DO_FCALL                                      0          
         5      > RETURN                                                   1

Class Test:
Function load:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Ge138
function name:  load
number of ops:  4
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   INIT_FCALL                                               'get_class'
         1        DO_ICALL                                         $0      
         2        ECHO                                                     $0
   6     3      > RETURN                                                   null

End of function load

End of class Test.

Class Child:
Function load:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Ge138
function name:  load
number of ops:  4
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   INIT_FCALL                                               'get_class'
         1        DO_ICALL                                         $0      
         2        ECHO                                                     $0
   6     3      > RETURN                                                   null

End of function load

End of class Child.

Generated using Vulcan Logic Dumper, using php 7.2.0