3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entity { private static function getStorageHandler() { return __CLASS__; } protected static function doIt() { return self::getStorageHandler(); } } class MyCustomEntity extends Entity { public static function doIt() { return parent::doIt(); } public static function getStorageHandler() { return __CLASS__; } } print MyCustomEntity::doIt();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WP9SF
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_STATIC_METHOD_CALL                                  'MyCustomEntity', 'doIt'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function getstoragehandler

Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WP9SF
function name:  doIt
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'getStorageHandler'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   10     3*     > RETURN                                                   null

End of function doit

End of class Entity.

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

End of function doit

Function getstoragehandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WP9SF
function name:  getStorageHandler
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   'MyCustomEntity'
   22     1*     > RETURN                                                   null

End of function getstoragehandler

End of class MyCustomEntity.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.9 ms | 1003 KiB | 13 Q