3v4l.org

run code in 300+ PHP versions simultaneously
<?php (@__WTF__ == '__WTF__') && define('__WTF__', 'foo'); echo "result of var_dump(__DIR__):\r\n"; var_dump(__WTF__);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/NMFn9
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~0      
          1        FETCH_CONSTANT                                   ~1      '__WTF__'
          2        END_SILENCE                                              ~0
          3        IS_EQUAL                                         ~2      ~1, '__WTF__'
          4      > JMPZ_EX                                          ~2      ~2, ->10
          5    >   INIT_FCALL                                               'define'
          6        SEND_VAL                                                 '__WTF__'
          7        SEND_VAL                                                 'foo'
          8        DO_ICALL                                         $3      
          9        BOOL                                             ~2      $3
    5    10    >   ECHO                                                     'result+of+var_dump%28__DIR__%29%3A%0D%0A'
    6    11        INIT_FCALL                                               'var_dump'
         12        FETCH_CONSTANT                                   ~4      '__WTF__'
         13        SEND_VAL                                                 ~4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1394 KiB | 17 Q