3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FOO { const BAR = FOOBAR; } define('FOORBAR', 'test'); echo FOO::BAR;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IQGvY
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'FOORBAR'
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                                 
    8     4        FETCH_CLASS_CONSTANT                             ~1      'FOO', 'BAR'
          5        ECHO                                                     ~1
          6      > RETURN                                                   1

Class FOO: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.07 ms | 1398 KiB | 15 Q