3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; const Bar = 1; var_dump(defined('Bar'), defined(__NAMESPACE__ . '\Bar'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2inu8
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'Foo%5CBar', 1
    7     1        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          2        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cdefined'
          3        SEND_VAL_EX                                              'Bar'
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR_NO_REF_EX                                       $0
          6        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cdefined'
          7        SEND_VAL_EX                                              'Foo%5CBar'
          8        DO_FCALL                                      0  $1      
          9        SEND_VAR_NO_REF_EX                                       $1
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.95 ms | 1394 KiB | 17 Q