3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = [ 'name' => [ (int) 0 => '095a108478345cac184f956b1e8dee91a5a89f87bbabd7b3fb4058f577adf.jpg', (int) 1 => '02059.jpg', (int) 2 => 'avatar.jpg' ], 'type' => [ (int) 0 => 'image/jpeg', (int) 1 => 'image/jpeg', (int) 2 => 'image/jpeg' ], 'tmp_name' => [ (int) 0 => 'C:\xampp\tmp\php17AA.tmp', (int) 1 => 'C:\xampp\tmp\php17BA.tmp', (int) 2 => 'C:\xampp\tmp\php17BB.tmp' ], 'error' => [ (int) 0 => (int) 0, (int) 1 => (int) 0, (int) 2 => (int) 0 ], 'size' => [ (int) 0 => (int) 80542, (int) 1 => (int) 6532, (int) 2 => (int) 6879 ] ]; $ret = []; $keys = array_keys($data); for ($i=0; $i<3; $i++) { $ret[$i] = array_combine($keys, array_column($data, $i)); } var_dump($ret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/D1RKv
function name:  (null)
number of ops:  25
compiled vars:  !0 = $data, !1 = $ret, !2 = $keys, !3 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
   32     1        ASSIGN                                                       !1, <array>
          2        INIT_FCALL                                                   'array_keys'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $6      
          5        ASSIGN                                                       !2, $6
   33     6        ASSIGN                                                       !3, 0
          7      > JMP                                                          ->19
   34     8    >   INIT_FCALL                                                   'array_combine'
          9        SEND_VAR                                                     !2
         10        INIT_FCALL                                                   'array_column'
         11        SEND_VAR                                                     !0
         12        SEND_VAR                                                     !3
         13        DO_ICALL                                             $10     
         14        SEND_VAR                                                     $10
         15        DO_ICALL                                             $11     
         16        ASSIGN_DIM                                                   !1, !3
         17        OP_DATA                                                      $11
   33    18        PRE_INC                                                      !3
         19    >   IS_SMALLER                                                   !3, 3
         20      > JMPNZ                                                        ~13, ->8
   37    21    >   INIT_FCALL                                                   'var_dump'
         22        SEND_VAR                                                     !1
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.45 ms | 2901 KiB | 16 Q