3v4l.org

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

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

End of function method

End of class FooInterface.

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

End of function method

End of class Foo.

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

End of function method

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.59 ms | 1393 KiB | 13 Q