3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('__DIR__')) { echo "ok"; 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/Z2tkf
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    >   ECHO                                                     'ok'
    5     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 '__DIR__'
          6        INIT_FCALL                                               'dirname'
          7        SEND_VAL                                                 '%2Fin%2FZ2tkf'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
    8    11    >   ECHO                                                     '%2Fin'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.04 ms | 1394 KiB | 17 Q