3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mypath = realpath( dirname(__FILE__).'/..'); // gives: /path/to/file/ $mypath = dirname(__FILE__).'/..'; // gives: /path/to/file/directory/..
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rBWVP
function name:  (null)
number of ops:  14
compiled vars:  !0 = $mypath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'realpath'
          1        INIT_FCALL                                               'dirname'
          2        SEND_VAL                                                 '%2Fin%2FrBWVP'
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      $1, '%2F..'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    4     8        INIT_FCALL                                               'dirname'
          9        SEND_VAL                                                 '%2Fin%2FrBWVP'
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%2F..'
         12        ASSIGN                                                   !0, ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.27 ms | 1394 KiB | 17 Q