3v4l.org

run code in 500+ PHP versions simultaneously
<?php $_FILES = [ 'file1' => [ 'name' => 'MyFile.txt', 'type' => 'text/plain', 'tmp_name' => '/tmp/php/php1h4j1o', 'error' => UPLOAD_ERR_OK, 'size' => 123, ], 'file2' => [ 'name' => 'MyFile.txt', 'type' => 'text/plain', 'tmp_name' => '/tmp/php/php137z5o', 'error' => UPLOAD_ERR_OK, 'size' => 123, ] ]; $files = $_FILES; // The above two are for demo purposes only, mocking the REST API. // Use the below code for WordPress. //$files = $request->get_file_params(); $cleanFiles = array_column($files, 'tmp_name'); var_dump($cleanFiles);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FS1kV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $files, !1 = $cleanFiles
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                          global              $2      '_FILES'
          1        ASSIGN                                                       $2, <array>
   20     2        FETCH_R                          global              ~4      '_FILES'
          3        ASSIGN                                                       !0, ~4
   27     4        INIT_FCALL                                                   'array_column'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     'tmp_name'
          7        DO_ICALL                                             $6      
          8        ASSIGN                                                       !1, $6
   29     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
195.55 ms | 1743 KiB | 15 Q