3v4l.org

run code in 500+ PHP versions simultaneously
<?php // echo A::A; // Undefined constant "B" define('B', 'yes'); class A { public const A = B; } echo A::A; // yes ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MigJ2
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'B'
          2        SEND_VAL                                                     'yes'
          3        DO_ICALL                                                     
   12     4        FETCH_CLASS_CONSTANT                                 ~1      'A', 'A'
          5        ECHO                                                         ~1
   15     6      > RETURN                                                       1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
149.86 ms | 1462 KiB | 14 Q