3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { } class Base { public function derp(Foo $bar) { } } class ExtendedFromBase extends Base { public function derp($bar) { // missing typehint is fine here } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XHiUW
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

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

End of function derp

End of class Base.

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

End of function derp

End of class ExtendedFromBase.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1393 KiB | 13 Q