3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo\bar { const baz = 42; } namespace { use foo\bar\baz; var_dump ( baz ); } namespace { use foo\bar as foo_bar; use foo\BAZ as FOO_BAZ; var_dump ( foo_bar () ); var_dump ( FOO_BAZ ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cs7JK
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'foo%5Cbar%5Cbaz', 42
   12     1        INIT_FCALL                                               'var_dump'
          2        FETCH_CONSTANT                                   ~0      'baz'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
   20     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL_BY_NAME                                       'foo_bar'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
   21    10        INIT_FCALL                                               'var_dump'
         11        FETCH_CONSTANT                                   ~4      'FOO_BAZ'
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                                 
   22    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.92 ms | 1394 KiB | 15 Q