3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace BAR { print foo::T_STRING; } namespace BAR { const T_STRING = 'a'; echo T_STRING; class foo { const T_STRING = T_STRING; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GeN6c
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_CLASS_CONSTANT                             ~0      'BAR%5Cfoo', 'T_STRING'
          1        ECHO                                                     ~0
    8     2        DECLARE_CONST                                            'BAR%5CT_STRING', 'a'
    9     3        FETCH_CONSTANT                                   ~1      'BAR%5CT_STRING'
          4        ECHO                                                     ~1
   14     5      > RETURN                                                   1

Class BAR\foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.03 ms | 1440 KiB | 13 Q