3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Consumer { function consume(Argument $argument); } class ConsumerA implements Consumer { public function consume(Argument $argument) { return $this->_consume($argument); } protected function _consume(ArgumentA $argument) { } } class ConsumerB implements Consumer { public function consume(Argument $argument) { $this->_consume($argument); } protected function _consume(ArgumentB $argument) { } } interface Argument { } class ArgumentA implements Argument { } class ArgumentB implements Argument { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EDod
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'consumera'
   25     1        DECLARE_CLASS                                            'consumerb'
   45     2        DECLARE_CLASS                                            'argumenta'
   50     3        DECLARE_CLASS                                            'argumentb'
   53     4      > RETURN                                                   1

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

End of function consume

End of class Consumer.

Class ConsumerA:
Function consume:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EDod
function name:  consume
number of ops:  6
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        INIT_METHOD_CALL                                         '_consume'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
   16     5*     > RETURN                                                   null

End of function consume

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

End of function _consume

End of class ConsumerA.

Class ConsumerB:
Function consume:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EDod
function name:  consume
number of ops:  5
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   30     1        INIT_METHOD_CALL                                         '_consume'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   31     4      > RETURN                                                   null

End of function consume

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

End of function _consume

End of class ConsumerB.

Class Argument: [no user functions]
Class ArgumentA: [no user functions]
Class ArgumentB: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.44 ms | 1403 KiB | 13 Q