3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { const ABSTRACT_CONST = self::ABSTRACT_CONST; } class b extends a { const ABSTRACT_CONST = 'a'; } class c extends a {} echo b::ABSTRACT_CONST, c::ABSTRACT_CONST;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N37YP
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'a'
    8     1        FETCH_CLASS_CONSTANT                             ~0      'c', 'ABSTRACT_CONST'
          2        ECHO                                                     ~0
    9     3      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.45 ms | 1392 KiB | 13 Q