3v4l.org

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

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

End of function aaa

End of class Foo.

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

End of function aaa

End of class Baz.

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

End of function aaa

End of class Tab.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.91 ms | 1433 KiB | 13 Q