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; const Z = 7; echo Z; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bidmC
function name:  (null)
number of ops:  10
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
   22     6        DECLARE_CONST                                            'Z', 7
   26     7        FETCH_CONSTANT                                   ~1      'Z'
          8        ECHO                                                     ~1
   29     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.32 ms | 1385 KiB | 15 Q