3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "test.php../../../../../../../../../../../../../../../../etc/passwd"; $path = "test.php../../../../../../../../../../../../../../../../usr/bin/php"; include $path; var_dump(realpath($path));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZroY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test.php..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd'
    3     1        ASSIGN                                                   !0, 'test.php..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fusr%2Fbin%2Fphp'
    5     2        INCLUDE_OR_EVAL                                          !0, INCLUDE
    6     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'realpath'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.34 ms | 1394 KiB | 17 Q