3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents("php://filter/write=string.toupper/resource=/tmp/test/example.txt","Hello World"); exec("echo 'ddd' > /tmp/test/ddd.txt"); foreach(new GlobIterator('/tmp/*', FilesystemIterator::SKIP_DOTS) as $file) { echo $file.PHP_EOL; //var_dump(file_get_contents($file)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/7cgoD
function name:  (null)
number of ops:  18
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 'php%3A%2F%2Ffilter%2Fwrite%3Dstring.toupper%2Fresource%3D%2Ftmp%2Ftest%2Fexample.txt'
          2        SEND_VAL                                                 'Hello+World'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'exec'
          5        SEND_VAL                                                 'echo+%27ddd%27+%3E+%2Ftmp%2Ftest%2Fddd.txt'
          6        DO_ICALL                                                 
    4     7        NEW                                              $3      'GlobIterator'
          8        SEND_VAL_EX                                              '%2Ftmp%2F%2A'
          9        SEND_VAL_EX                                              4096
         10        DO_FCALL                                      0          
         11      > FE_RESET_R                                       $5      $3, ->16
         12    > > FE_FETCH_R                                               $5, !0, ->16
    5    13    >   CONCAT                                           ~6      !0, '%0A'
         14        ECHO                                                     ~6
    4    15      > JMP                                                      ->12
         16    >   FE_FREE                                                  $5
    7    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1395 KiB | 17 Q