3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A {public int $i = 42;} const BARE_CONSTANT = new A; class B { const ClassConstant = BARE_CONSTANT; } class C { const ClassConstantViaPropertyFetching1 = BARE_CONSTANT->i; const ClassConstantViaPropertyFetching2 = B::ClassConstant->i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RGdIA
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                                'BARE_CONSTANT', <const ast>
   11     1      > 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.5.0


preferences:
166.29 ms | 1626 KiB | 13 Q