3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Thing1 { function stuff($arg); } interface Thing2 extends Thing1 { function stuff($arg, $extra_arg); } class Foo implements Thing2 { function stuff($arg, $extra_arg) { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UqWEW
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'thing2'
   10     1        DECLARE_CLASS                                            'foo'
   13     2      > RETURN                                                   1

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

End of function stuff

End of class Thing1.

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

End of function stuff

End of class Thing2.

Class Foo:
Function stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UqWEW
function name:  stuff
number of ops:  3
compiled vars:  !0 = $arg, !1 = $extra_arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2      > RETURN                                                   null

End of function stuff

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1398 KiB | 13 Q