3v4l.org

run code in 300+ 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.0.0


preferences:
144.57 ms | 993 KiB | 13 Q