3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B extends A { } abstract class A { public static function get() { self::resolve(); } private static function resolve() { var_dump(get_called_class()); } } B::get();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cms3M
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'b', 'a'
   20     1        INIT_STATIC_METHOD_CALL                                  'B', 'get'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class B: [no user functions]
Class A:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cms3M
function name:  get
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'resolve'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   null

End of function get

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

End of function resolve

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1395 KiB | 15 Q