3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { define('foo\true', 'test'); eval('namespace foo { var_dump(true); var_dump(TRue); }'); echo "Outside eval\n"; var_dump(true); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ppBdV
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_NS_FCALL_BY_NAME                                    'foo%5Cdefine'
          1        SEND_VAL_EX                                              'foo%5Ctrue'
          2        SEND_VAL_EX                                              'test'
          3        DO_FCALL                                      0          
    4     4        INCLUDE_OR_EVAL                                          'namespace+foo+%7B+var_dump%28true%29%3B+var_dump%28TRue%29%3B+%7D', EVAL
    5     5        ECHO                                                     'Outside+eval%0A'
    6     6        INIT_NS_FCALL_BY_NAME                                    'foo%5Cvar_dump'
          7        SEND_VAL_EX                                              <true>
          8        DO_FCALL                                      0          
    7     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.29 ms | 1001 KiB | 15 Q