3v4l.org

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

Class Thing:
Function stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nk24U
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 Thing.

Class Foo:
Function stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nk24U
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      
    8     2      > RETURN                                                   null

End of function stuff

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1384 KiB | 13 Q