3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * vendor implementation of FooInterface */ interface Vendor_FooInterface // autogenerated, formerly known as FooInterface { const MY_CONST = 'core'; } /** * venture implementation of FooInterface */ interface FooInterface extends Vendor_FooInterface { const MY_CONST = 'venture'; } var_dump(FooInterface::MY_CONST);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V6qmW
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'foointerface'
   18     1        INIT_FCALL                                               'var_dump'
          2        FETCH_CLASS_CONSTANT                             ~0      'FooInterface', 'MY_CONST'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Vendor_FooInterface: [no user functions]
Class FooInterface: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.87 ms | 1398 KiB | 15 Q