3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Supertype {} class Superclass implements Supertype { public function fn(Superclass $x) {} } class Subclass extends Superclass { public function fn(Supertype $x) {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6hoBe
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'superclass'
   10     1        DECLARE_CLASS                                            'subclass', 'superclass'
   13     2      > RETURN                                                   1

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

End of function fn

End of class Superclass.

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

End of function fn

End of class Subclass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.78 ms | 1393 KiB | 13 Q