3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { define('DERP', 'derp'); define('Ozzie\Miauw\Woef\BLAAT', 'blaat'); } namespace Ozzie\Miauw\Woef { var_dump(DERP, BLAAT); define('Ozzie\Miauw\Woef\DERP', 'Ozzie'); var_dump(DERP); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlqSD
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DERP'
          2        SEND_VAL                                                 'derp'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'Ozzie%5CMiauw%5CWoef%5CBLAAT'
          6        SEND_VAL                                                 'blaat'
          7        DO_ICALL                                                 
    9     8        INIT_NS_FCALL_BY_NAME                                    'Ozzie%5CMiauw%5CWoef%5Cvar_dump'
          9        FETCH_CONSTANT                                   ~2      'Ozzie%5CMiauw%5CWoef%5CDERP'
         10        SEND_VAL_EX                                              ~2
         11        FETCH_CONSTANT                                   ~3      'Ozzie%5CMiauw%5CWoef%5CBLAAT'
         12        SEND_VAL_EX                                              ~3
         13        DO_FCALL                                      0          
   11    14        INIT_NS_FCALL_BY_NAME                                    'Ozzie%5CMiauw%5CWoef%5Cdefine'
         15        SEND_VAL_EX                                              'Ozzie%5CMiauw%5CWoef%5CDERP'
         16        SEND_VAL_EX                                              'Ozzie'
         17        DO_FCALL                                      0          
   13    18        INIT_NS_FCALL_BY_NAME                                    'Ozzie%5CMiauw%5CWoef%5Cvar_dump'
         19        FETCH_CONSTANT                                   ~6      'Ozzie%5CMiauw%5CWoef%5CDERP'
         20        SEND_VAL_EX                                              ~6
         21        DO_FCALL                                      0          
   14    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.45 ms | 1446 KiB | 15 Q