3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'de' => [ 'slug' => 'de', 'url' => 'http://localhost/werk/Mol/de/haus/', 'flag' => 'http://localhost/werk/Mol/wp-content/plugins/polylang/flags/de.png' ], 'nl' => [ 'slug' => 'nl', 'url' => 'http://localhost/werk/Mol/', 'flag' => 'http://localhost/werk/Mol/wp-content/plugins/polylang/flags/nl.png' ] ]; $res = []; foreach($arr as $k => $v){ $res[$k] = [ 'slug' => $v['slug'], 'url' => $v['url'], 'flag' => $v['flag'] ]; } echo '<pre>'; print_r($res);
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
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/ndAEK
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $res, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        ASSIGN                                                   !1, <array>
   16     2      > FE_RESET_R                                       $6      !0, ->14
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->14
          4    >   ASSIGN                                                   !3, ~7
   18     5        FETCH_DIM_R                                      ~10     !2, 'slug'
          6        INIT_ARRAY                                       ~11     ~10, 'slug'
   19     7        FETCH_DIM_R                                      ~12     !2, 'url'
          8        ADD_ARRAY_ELEMENT                                ~11     ~12, 'url'
   20     9        FETCH_DIM_R                                      ~13     !2, 'flag'
         10        ADD_ARRAY_ELEMENT                                ~11     ~13, 'flag'
   17    11        ASSIGN_DIM                                               !1, !3
   20    12        OP_DATA                                                  ~11
   16    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $6
   23    15        ECHO                                                     '%3Cpre%3E'
   24    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:
126.18 ms | 1426 KiB | 14 Q