3v4l.org

run code in 300+ PHP versions simultaneously
<?php constant('__DIR__'); define('__DIR__', 'yay'); var_dump(__DIR__);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f2oC6
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'constant'
          1        SEND_VAL                                                 '__DIR__'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'define'
          4        SEND_VAL                                                 '__DIR__'
          5        SEND_VAL                                                 'yay'
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAL                                                 '%2Fin'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.24 ms | 1394 KiB | 19 Q