3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public function x() { var_dump(__METHOD__); } } class Y extends X { public static function f() { parent::x(); } public static function g() { X::x(); } public function h() { parent::x(); } public function i() { X::x(); } } Y::f(); Y::g(); Y::h(); Y::i();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MJdJd
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'Y', 'f'
          1        DO_FCALL                                      0          
   15     2        INIT_STATIC_METHOD_CALL                                  'Y', 'g'
          3        DO_FCALL                                      0          
   16     4        INIT_STATIC_METHOD_CALL                                  'Y', 'h'
          5        DO_FCALL                                      0          
   17     6        INIT_STATIC_METHOD_CALL                                  'Y', 'i'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class X:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MJdJd
function name:  x
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'X%3A%3Ax'
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function x

End of class X.

Class Y:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MJdJd
function name:  f
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'x'
          1        DO_FCALL                                      0          
          2      > 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/MJdJd
function name:  g
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'X', 'x'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   null

End of function g

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

End of function h

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

End of function i

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

End of function x

End of class Y.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.01 ms | 1400 KiB | 15 Q