3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IRequest {} class CreditMode implements IRequest{ } class Father { public function from(IRequest $source) {} } class Son extends Father { public function from(IRequest $request) { } } $son = new Son(); $son->from(new CreditMode());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lt7TH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $son
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'creditmode'
   21     1        NEW                                              $1      'Son'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   22     4        INIT_METHOD_CALL                                         !0, 'from'
          5        NEW                                              $4      'CreditMode'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class IRequest: [no user functions]
Class CreditMode: [no user functions]
Class Father:
Function from:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lt7TH
function name:  from
number of ops:  2
compiled vars:  !0 = $source
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function from

End of class Father.

Class Son:
Function from:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lt7TH
function name:  from
number of ops:  2
compiled vars:  !0 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   19     1      > RETURN                                                   null

End of function from

End of class Son.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.51 ms | 1398 KiB | 13 Q