3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Top { function A() { echo 'A'; } } class Bottom extends Top { function B() { call_user_func_array('parent::A', []); } } $child = new Bottom(); $child->B();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/huQ0d
function name:  (null)
number of ops:  6
compiled vars:  !0 = $child
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'Bottom'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   15     3        INIT_METHOD_CALL                                             !0, 'B'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

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

End of function a

End of class Top.

Class Bottom:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/huQ0d
function name:  B
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_USER_CALL                                    0          'call_user_func_array', 'parent%3A%3AA'
          1        SEND_ARRAY                                                   <array>
          2        CHECK_UNDEF_ARGS                                             
          3        DO_FCALL                                          1          
   10     4      > RETURN                                                       null

End of function b

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

End of function a

End of class Bottom.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
202.08 ms | 2061 KiB | 12 Q