3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( '1' => Array ( '1' => 48.083261120685 ), '2' => Array ( '3' => 40.509258201058 ), '3' => Array ( '2' => 38.262252939418 ), '4' => Array ( '3' => 42.296571965113 ), '5' => Array ( '3' => 4.5825756949558 ), '6' => Array ( '3' => 186.7110066386 ), '7' => Array ( '3' => 149.29835899969 ), '8' => Array ( '2' => 47.053161424074 ), '9' => Array ( '2' => 15.58845726812 ), '10' => Array ( '2' => 6.164414002969 ), '11' => Array ( '1' => 4.5825756949558 ), '12' => Array ( '2' => 42.0119030752 ), '13' => Array ( '1' => 52.886671288709 ), '14' => Array ( '1' => 65.222695436481 ) ); $r= []; foreach($a as $k => $v){ foreach($v as $k1 => $v1){ $r[$k1][$k] = $v1; } } echo '<pre>'; print_r($r);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/4XOF6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $r, !2 = $v, !3 = $k, !4 = $v1, !5 = $k1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   76     1        ASSIGN                                                   !1, <array>
   77     2      > FE_RESET_R                                       $8      !0, ->14
          3    > > FE_FETCH_R                                       ~9      $8, !2, ->14
          4    >   ASSIGN                                                   !3, ~9
   78     5      > FE_RESET_R                                       $11     !2, ->12
          6    > > FE_FETCH_R                                       ~12     $11, !4, ->12
          7    >   ASSIGN                                                   !5, ~12
   79     8        FETCH_DIM_W                                      $14     !1, !5
          9        ASSIGN_DIM                                               $14, !3
         10        OP_DATA                                                  !4
   78    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $11
   77    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $8
   82    15        ECHO                                                     '%3Cpre%3E'
   83    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.93 ms | 1395 KiB | 15 Q