3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { const A = 1; } namespace Alt { const A = 3; } namespace UsingAlt { use const Alt\A; var_dump(A); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/udEv1
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                            'A', 1
    8     1        DECLARE_CONST                                            'Alt%5CA', 3
   13     2        INIT_NS_FCALL_BY_NAME                                    'UsingAlt%5Cvar_dump'
          3        FETCH_CONSTANT                                   ~0      'Alt%5CA'
          4        SEND_VAL_EX                                              ~0
          5        DO_FCALL                                      0          
   14     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.39 ms | 1393 KiB | 15 Q