3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class C { static function f() { echo "f() called\n"; self::g(); } static function g() { echo "g() called\n"; } } class D extends C {} D::f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhU89
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                  'D', 'f'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class C:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhU89
function name:  f
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'f%28%29+called%0A'
    7     1        INIT_STATIC_METHOD_CALL                                  'g'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function f

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhU89
function name:  g
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'g%28%29+called%0A'
   11     1      > RETURN                                                   null

End of function g

End of class C.

Class D:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhU89
function name:  f
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'f%28%29+called%0A'
    7     1        INIT_STATIC_METHOD_CALL                                  'g'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function f

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhU89
function name:  g
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'g%28%29+called%0A'
   11     1      > RETURN                                                   null

End of function g

End of class D.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.74 ms | 1395 KiB | 13 Q