3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i { function foo($a, $b = 2); } class x implements i { // This is compatible with the interface definition function foo(...$args) {} } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IiQhc
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'x'
   12     1      > RETURN                                                       1

Class i:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IiQhc
function name:  foo
number of ops:  3
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      2
          2      > RETURN                                                       null

End of function foo

End of class i.

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

End of function foo

End of class x.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.58 ms | 1462 KiB | 13 Q