3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('__DIR__')) { define('__DIR__', dirname(__FILE__)); } print __DIR__;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/dmdu5
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DEFINED                                          ~0      '__DIR__'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->10
    4     3    >   INIT_FCALL                                               'define'
          4        SEND_VAL                                                 '__DIR__'
          5        INIT_FCALL                                               'dirname'
          6        SEND_VAL                                                 '%2Fin%2Fdmdu5'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
    7    10    >   ECHO                                                     '%2Fin'
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1394 KiB | 17 Q