3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function bar($x, $y = 5); } class what implements foo { function bar($x) { } } class who implements foo { function bar($x, $y = 5) { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r3KCh
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'what'
   12     1        DECLARE_CLASS                                            'who'
   15     2      > RETURN                                                   1

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

End of function bar

End of class foo.

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

End of function bar

End of class what.

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

End of function bar

End of class who.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1394 KiB | 13 Q