3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = 'etc/ppasswd'; echo realpath($filename) . PHP_EOL; $fullpath = 'G:/modules/vergleichsrechner/Latex/Output/'; echo realpath('../modules/vergleichsrechner/Latex/Output') . PHP_EOL; echo realpath('./../../etc/passwd') . PHP_EOL; echo realpath('/tmp/') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/coHYI
function name:  (null)
number of ops:  23
compiled vars:  !0 = $filename, !1 = $fullpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'etc%2Fppasswd'
    4     1        INIT_FCALL                                               'realpath'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        CONCAT                                           ~4      $3, '%0A'
          5        ECHO                                                     ~4
    6     6        ASSIGN                                                   !1, 'G%3A%2Fmodules%2Fvergleichsrechner%2FLatex%2FOutput%2F'
    7     7        INIT_FCALL                                               'realpath'
          8        SEND_VAL                                                 '..%2Fmodules%2Fvergleichsrechner%2FLatex%2FOutput'
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '%0A'
         11        ECHO                                                     ~7
    9    12        INIT_FCALL                                               'realpath'
         13        SEND_VAL                                                 '.%2F..%2F..%2Fetc%2Fpasswd'
         14        DO_ICALL                                         $8      
         15        CONCAT                                           ~9      $8, '%0A'
         16        ECHO                                                     ~9
   11    17        INIT_FCALL                                               'realpath'
         18        SEND_VAL                                                 '%2Ftmp%2F'
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     $10, '%0A'
         21        ECHO                                                     ~11
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.57 ms | 1386 KiB | 15 Q