3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "sdfsdflkj\"; ls; echo \" "; $path = preg_replace( '/([;<>\*\|`\$!#\(\)\[\]\{\}:i'."'".'"]@)/', '$1', $path); print `echo "asdasd $path sdsdff"`;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SSSEe
function name:  (null)
number of ops:  15
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sdfsdflkj%22%3B+ls%3B+echo+%22+'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%5B%3B%3C%3E%5C%2A%5C%7C%60%5C%24%21%23%5C%28%5C%29%5C%5B%5C%5D%5C%7B%5C%7D%3Ai%27%22%5D%40%29%2F'
          3        SEND_VAL                                                 '%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'shell_exec'
          8        ROPE_INIT                                     3  ~5      'echo+%22asdasd+'
          9        ROPE_ADD                                      1  ~5      ~5, !0
         10        ROPE_END                                      2  ~4      ~5, '+sdsdff%22'
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1398 KiB | 17 Q