3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface BaseInterface { public function testMethod(); } interface TestInterface extends BaseInterface { } class TestClass implements TestInterface, BaseInterface { public function testMethod() { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g3a4c
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'testinterface'
   12     1        DECLARE_CLASS                                            'testclass'
   17     2      > RETURN                                                   1

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

End of function testmethod

End of class BaseInterface.

Class TestInterface: [no user functions]
Class TestClass:
Function testmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g3a4c
function name:  testMethod
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   null

End of function testmethod

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.36 ms | 1393 KiB | 13 Q