3v4l.org

run code in 300+ PHP versions simultaneously
<?php $destfile = "/data/editor/vuln/../../dbconfig.php"; if(preg_match('/\/data\/editor\/[A-Za-z0-9_]{1,20}\//', $destfile)) var_dump("@unlink($destfile);"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/TmoTV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $destfile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fdata%2Feditor%2Fvuln%2F..%2F..%2Fdbconfig.php'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%2Fdata%5C%2Feditor%5C%2F%5BA-Za-z0-9_%5D%7B1%2C20%7D%5C%2F%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->12
    4     6    >   INIT_FCALL                                               'var_dump'
          7        ROPE_INIT                                     3  ~4      '%40unlink%28'
          8        ROPE_ADD                                      1  ~4      ~4, !0
          9        ROPE_END                                      2  ~3      ~4, '%29%3B'
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                                 
    5    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1394 KiB | 17 Q