3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i { function foo($a) ; } interface j extends i { function foo($a, $b = 3); } interface k extends j { function foo($a = 4, $b = 3); } interface l extends k { function foo(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u4p3g
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'j'
   11     1        DECLARE_CLASS                                                'k'
   15     2        DECLARE_CLASS                                                'l'
   17     3      > RETURN                                                       1

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

End of function foo

End of class i.

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

End of function foo

End of class j.

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

End of function foo

End of class k.

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

End of function foo

End of class l.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
152.84 ms | 1478 KiB | 13 Q