3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.73 ms | 1393 KiB | 15 Q