3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Bar {} interface Baz extends Bar {}; interface Foo { public function art(Bar $bar); } interface Fooz extends Foo { } class A implements Fooz { public function art(Baz $bar) { var_dump($bar); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TmEPQ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'baz'
    7     1        DECLARE_CLASS                                            'fooz'
    9     2        DECLARE_CLASS                                            'a'
          3      > RETURN                                                   1

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

End of function art

End of class Foo.

Class Fooz: [no user functions]
Class A:
Function art:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TmEPQ
function name:  art
number of ops:  5
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function art

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.85 ms | 1395 KiB | 15 Q