3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TypedDataInterface { public function getValue(); } interface FieldItemListInterface extends TypedDataInterface {} trait ComputedItemListTrait { public function getValue($include_computed = FALSE) {} } class FieldItemList implements FieldItemListInterface { public function getValue($include_computed = FALSE) {} } class CustomTypedData implements TypedDataInterface { use ComputedItemListTrait; } class CustomFieldItemList extends FieldItemList { use ComputedItemListTrait; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YgNV
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'fielditemlistinterface'
   13     1        DECLARE_CLASS                                            'fielditemlist'
   17     2        DECLARE_CLASS                                            'customtypeddata'
   21     3        DECLARE_CLASS                                            'customfielditemlist', 'fielditemlist'
   23     4      > RETURN                                                   1

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

End of function getvalue

End of class TypedDataInterface.

Class FieldItemListInterface: [no user functions]
Class ComputedItemListTrait:
Function getvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YgNV
function name:  getValue
number of ops:  2
compiled vars:  !0 = $include_computed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      <false>
          1      > RETURN                                                   null

End of function getvalue

End of class ComputedItemListTrait.

Class FieldItemList:
Function getvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YgNV
function name:  getValue
number of ops:  2
compiled vars:  !0 = $include_computed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV_INIT                                        !0      <false>
          1      > RETURN                                                   null

End of function getvalue

End of class FieldItemList.

Class CustomTypedData: [no user functions]
Class CustomFieldItemList: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.67 ms | 1394 KiB | 13 Q