3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "FILE: '".__FILE__."'\n"; print "Result: '".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/DirPc
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'FILE%3A+%27%2Fin%2FDirPc%27%0A'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAL                                                 '%2Fin%2FDirPc'
          3        SEND_VAL                                                 0
          4        INIT_FCALL                                               'strrpos'
          5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 '%5C'
          7        SEND_VAL                                                 '%2F'
          8        SEND_VAL                                                 '%2Fin%2FDirPc'
          9        DO_ICALL                                         $0      
         10        SEND_VAR                                                 $0
         11        SEND_VAL                                                 '%2F'
         12        DO_ICALL                                         $1      
         13        SEND_VAR                                                 $1
         14        DO_ICALL                                         $2      
         15        CONCAT                                           ~3      'Result%3A+%27', $2
         16        CONCAT                                           ~4      ~3, '%2F..%2F..%2Finc%2F'
         17        ECHO                                                     ~4
    4    18        ECHO                                                     '%27%0ADONE'
    6    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1395 KiB | 19 Q