3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = array ( 'name' => array ( 0 => 'Image.PNG', 1 => 'sadssadsa.PNG', ), 'type' => array ( 0 => 'image/png', 1 => 'image/png', ), 'tmp_name' => array ( 0 => 'C:\\Users\\CH MANAN\\AppData\\Local\\Temp\\php48B6.tmp', 1 => 'C:\\Users\\CH MANAN\\AppData\\Local\\Temp\\php48B7.tmp', ), 'error' => array ( 0 => '0', 1 => '0', ), 'size' => array ( 0 => '291647', 1 => '112790', ), ); //foreach($_FILES as $file) { $keys = array_keys($file); foreach($file['name'] as $key => $f){ $new[] = array_combine($keys, array_column($file, $key)); } //} var_dump($new);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/6lL8J
function name:  (null)
number of ops:  25
compiled vars:  !0 = $file, !1 = $keys, !2 = $f, !3 = $key, !4 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   32     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   33     5        FETCH_DIM_R                                      ~8      !0, 'name'
          6      > FE_RESET_R                                       $9      ~8, ->20
          7    > > FE_FETCH_R                                       ~10     $9, !2, ->20
          8    >   ASSIGN                                                   !3, ~10
   34     9        INIT_FCALL                                               'array_combine'
         10        SEND_VAR                                                 !1
         11        INIT_FCALL                                               'array_column'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $13     
         15        SEND_VAR                                                 $13
         16        DO_ICALL                                         $14     
         17        ASSIGN_DIM                                               !4
         18        OP_DATA                                                  $14
   33    19      > JMP                                                      ->7
         20    >   FE_FREE                                                  $9
   37    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !4
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.56 ms | 1005 KiB | 17 Q