3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { const BAR = 20; } namespace { var_dump(\foo\BAR); var_dump(\Foo\BAR); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ju4F0
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                            'Foo%5CBAR', 20
    8     1        INIT_FCALL                                               'var_dump'
          2        FETCH_CONSTANT                                   ~0      'foo%5CBAR'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
    9     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~2      'Foo%5CBAR'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.33 ms | 996 KiB | 14 Q