3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('content-type: text/plain'); var_dump( 'Current directory: ' . __DIR__, 'Parent directory: ' . dirname(__DIR__), 'Parent of parent directory: ' . dirname(dirname(__DIR__)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/duidu
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'content-type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
    5     4        SEND_VAL                                                 'Current+directory%3A+%2Fin'
    6     5        INIT_FCALL                                               'dirname'
          6        SEND_VAL                                                 '%2Fin'
          7        DO_ICALL                                         $1      
          8        CONCAT                                           ~2      'Parent+directory%3A+', $1
          9        SEND_VAL                                                 ~2
    7    10        INIT_FCALL                                               'dirname'
         11        INIT_FCALL                                               'dirname'
         12        SEND_VAL                                                 '%2Fin'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      'Parent+of+parent+directory%3A+', $4
         17        SEND_VAL                                                 ~5
         18        DO_ICALL                                                 
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1395 KiB | 19 Q