3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { static function call() { self::method1(); } static function method1() { static::method2(); } static function method2() { echo 'Base definition'; } } class B extends A { static function method2() { echo 'Override'; } } B::call();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p2g8E
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   INIT_STATIC_METHOD_CALL                                      'B', 'call'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

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

End of function call

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

End of function method1

Function method2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p2g8E
function name:  method2
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                         'Base+definition'
   12     1      > RETURN                                                       null

End of function method2

End of class A.

Class B:
Function method2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p2g8E
function name:  method2
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                         'Override'
   18     1      > RETURN                                                       null

End of function method2

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

End of function call

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

End of function method1

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.97 ms | 2098 KiB | 13 Q