3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ConstantContainer { const MY_CONSTANT = 'Hello World!'; } class ConstantTest implements ConstantContainer { } echo ConstantTest::MY_CONSTANT;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gXjLc
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'constanttest'
   14     1        FETCH_CLASS_CONSTANT                             ~0      'ConstantTest', 'MY_CONSTANT'
          2        ECHO                                                     ~0
          3      > RETURN                                                   1

Class ConstantContainer: [no user functions]
Class ConstantTest: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.3 ms | 1392 KiB | 13 Q