3v4l.org

run code in 300+ PHP versions simultaneously
<? namespace B { const TEST12 = 1; } namespace A { use const B\TEST1 as TEST1; define ( 'TEST1', 5 ); echo TEST1; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EJRKj
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'B%5CTEST12', 1
   12     1        INIT_NS_FCALL_BY_NAME                                    'A%5Cdefine'
          2        SEND_VAL_EX                                              'TEST1'
          3        SEND_VAL_EX                                              5
          4        DO_FCALL                                      0          
   13     5        FETCH_CONSTANT                                   ~1      'B%5CTEST1'
          6        ECHO                                                     ~1
   15     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.3 ms | 1398 KiB | 15 Q