3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "FILE:".__FILE__."\n"; print "Result".realpath(substr(__FILE__, 0, strrpos(str_replace('\\', '/', __FILE__), '/')).'/../../inc/').'/'; echo "\nDONE"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cAW6o
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'FILE%3A%2Fin%2FcAW6o%0A'
    3     1        INIT_FCALL                                               'realpath'
          2        INIT_FCALL                                               'substr'
          3        SEND_VAL                                                 '%2Fin%2FcAW6o'
          4        SEND_VAL                                                 0
          5        INIT_FCALL                                               'strrpos'
          6        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '%5C'
          8        SEND_VAL                                                 '%2F'
          9        SEND_VAL                                                 '%2Fin%2FcAW6o'
         10        DO_ICALL                                         $0      
         11        SEND_VAR                                                 $0
         12        SEND_VAL                                                 '%2F'
         13        DO_ICALL                                         $1      
         14        SEND_VAR                                                 $1
         15        DO_ICALL                                         $2      
         16        CONCAT                                           ~3      $2, '%2F..%2F..%2Finc%2F'
         17        SEND_VAL                                                 ~3
         18        DO_ICALL                                         $4      
         19        CONCAT                                           ~5      'Result', $4
         20        CONCAT                                           ~6      ~5, '%2F'
         21        ECHO                                                     ~6
    4    22        ECHO                                                     '%0ADONE'
    6    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1386 KiB | 21 Q