3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Biz { const Bar = 41; } namespace Foo { use const Biz\Bar; echo Bar; } namespace Foo { const Bar = 42; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E4PFX
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                                'Biz%5CBar', 41
    9     1        FETCH_CONSTANT                                       ~0      'Biz%5CBar'
          2        ECHO                                                         ~0
   13     3        DECLARE_CONST                                                'Foo%5CBar', 42
   14     4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
228.44 ms | 3280 KiB | 13 Q