3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('__DIR__')) { define('__DIR__', dirname(__FILE)); } echo __DIR__;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/DEas0
function name:  (null)
number of ops:  13
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, ->11
    4     3    >   INIT_FCALL                                               'define'
          4        SEND_VAL                                                 '__DIR__'
          5        INIT_FCALL                                               'dirname'
          6        FETCH_CONSTANT                                   ~2      '__FILE'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
    7    11    >   ECHO                                                     '%2Fin'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.76 ms | 1398 KiB | 17 Q