3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { define('true', false); var_dump(true === false); } // Но вот в неймспейсе - пожалуйста namespace Knp { define('Knp\\true', false); var_dump(true === false); // true }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PPPRY
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'true'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 <false>
          6        DO_ICALL                                                 
   10     7        INIT_NS_FCALL_BY_NAME                                    'Knp%5Cdefine'
          8        SEND_VAL_EX                                              'Knp%5Ctrue'
          9        SEND_VAL_EX                                              <false>
         10        DO_FCALL                                      0          
   11    11        INIT_NS_FCALL_BY_NAME                                    'Knp%5Cvar_dump'
         12        SEND_VAL_EX                                              <false>
         13        DO_FCALL                                      0          
   12    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.84 ms | 1394 KiB | 17 Q