3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface a { const con = 'Original value'; } abstract class b implements a { } class d extends b { const con='Overridden value'; } echo d::con;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u4Y1q
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'b'
   11     1        DECLARE_CLASS                                                'd', 'b'
   15     2        FETCH_CLASS_CONSTANT                                 ~0      'd', 'con'
          3        ECHO                                                         ~0
          4      > RETURN                                                       1

Class a: [no user functions]
Class b: [no user functions]
Class d: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.96 ms | 2961 KiB | 13 Q