3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.29 ms | 1394 KiB | 15 Q