3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'wd[wd5][amount]' => 1.00, 'wd[wd5][address]' => '1BitcoinAddress', 'wd[wd5][currency]' => 'BTC', ], [ 'wd[wd7][amount]' => 1.00, 'wd[wd7][address]' => '1BitcoinAddress', 'wd[wd7][currency]' => 'BTC' ], ]; $result = []; foreach(new RecursiveIteratorIterator( new RecursiveArrayIterator($array) ) as $key => $value) { $result[$key] = $value; } print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/0fCKj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $result, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   17     1        ASSIGN                                                   !1, <array>
   18     2        NEW                                              $6      'RecursiveIteratorIterator'
   19     3        NEW                                              $7      'RecursiveArrayIterator'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $7
   18     7        DO_FCALL                                      0          
   19     8      > FE_RESET_R                                       $10     $6, ->14
          9    > > FE_FETCH_R                                       ~11     $10, !2, ->14
   20    10    >   ASSIGN                                                   !3, ~11
   21    11        ASSIGN_DIM                                               !1, !3
         12        OP_DATA                                                  !2
   18    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $10
   24    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.72 ms | 999 KiB | 14 Q