3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Base { function base(); } interface Derived extends Base { function derived(); } interface Derp extends Base { function derp(); } class ThisIsValid implements Base, Derived { public function base() {} public function derived() {} } class ThisWillError implements Derp, Derived { public function derp() {} public function derived() {} }
based on tSb3f
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  (null)
number of ops:  14
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        DECLARE_CLASS                                    $1      '%00derived%2Fin%2FKQSWK0x7f15d3e9c069', 'derived'
         2        ADD_INTERFACE                                            $1, 'Base'
  12     3        DECLARE_CLASS                                    $2      '%00derp%2Fin%2FKQSWK0x7f15d3e9c09f', 'derp'
         4        ADD_INTERFACE                                            $2, 'Base'
  17     5        DECLARE_CLASS                                    $3      '%00thisisvalid%2Fin%2FKQSWK0x7f15d3e9c10f', 'thisisvalid'
         6        ADD_INTERFACE                                            $3, 'Base'
         7        ADD_INTERFACE                                            $3, 'Derived'
         8        VERIFY_ABSTRACT_CLASS                                    $3
  22     9        DECLARE_CLASS                                    $4      '%00thiswillerror%2Fin%2FKQSWK0x7f15d3e9c180', 'thiswillerror'
        10        ADD_INTERFACE                                            $4, 'Derp'
        11        ADD_INTERFACE                                            $4, 'Derived'
        12        VERIFY_ABSTRACT_CLASS                                    $4
  25    13      > RETURN                                                   1

Class Base:
Function base:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  base
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E > > RETURN                                                   null

End of function base

End of class Base.

Class Derived:
Function derived:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  derived
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E > > RETURN                                                   null

End of function derived

End of class Derived.

Class Derp:
Function derp:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  derp
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  13     0  E > > RETURN                                                   null

End of function derp

End of class Derp.

Class ThisIsValid:
Function base:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  base
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  18     0  E > > RETURN                                                   null

End of function base

Function derived:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  derived
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  19     0  E > > RETURN                                                   null

End of function derived

End of class ThisIsValid.

Class ThisWillError:
Function derp:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  derp
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  23     0  E > > RETURN                                                   null

End of function derp

Function derived:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KQSWK
function name:  derived
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  24     0  E > > RETURN                                                   null

End of function derived

End of class ThisWillError.

Generated using Vulcan Logic Dumper, using php 7.1.0