3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace { define('B\CONSTANT', 123); define('B\NULL', 456); define('GLOBAL_CONSTANT', 789); } namespace B { var_dump(NULL); var_dump(CONSTANT); var_dump(\B\NULL); var_dump(GLOBAL_CONSTANT); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3PBBa
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'B%5CCONSTANT'
          2        SEND_VAL                                                     123
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'define'
          5        SEND_VAL                                                     'B%5CNULL'
          6        SEND_VAL                                                     456
          7        DO_ICALL                                                     
    5     8        INIT_FCALL                                                   'define'
          9        SEND_VAL                                                     'GLOBAL_CONSTANT'
         10        SEND_VAL                                                     789
         11        DO_ICALL                                                     
    8    12        INIT_NS_FCALL_BY_NAME                                        'B%5Cvar_dump'
         13        SEND_VAL_EX                                                  null
         14        DO_FCALL                                          0          
    9    15        INIT_NS_FCALL_BY_NAME                                        'B%5Cvar_dump'
         16        FETCH_CONSTANT                                       ~4      'B%5CCONSTANT'
         17        SEND_VAL_EX                                                  ~4
         18        DO_FCALL                                          0          
   10    19        INIT_NS_FCALL_BY_NAME                                        'B%5Cvar_dump'
         20        FETCH_CONSTANT                                       ~6      'B%5CNULL'
         21        SEND_VAL_EX                                                  ~6
         22        DO_FCALL                                          0          
   11    23        INIT_NS_FCALL_BY_NAME                                        'B%5Cvar_dump'
         24        FETCH_CONSTANT                                       ~8      'B%5CGLOBAL_CONSTANT'
         25        SEND_VAL_EX                                                  ~8
         26        DO_FCALL                                          0          
   12    27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.75 ms | 1588 KiB | 15 Q