3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'URL' => 'http://www.transsunline.ru/', 'WORLD' => [ '200кг' => '200кг', 'ТрансСанЛайн' => 'Транс Онлайн' ], 'ERROR' => 2 ], [ 'URL' => 'http://www.transsunline.ru/vopros-otvet', 'WORLD' => [ 'mdash' => 'dash', 'ТрансСанЛайн' => 'Транс Онлайн' ], 'ERROR' => 5 ] ]; foreach ($array as $_key => $_value) { foreach (array_keys($_value['WORLD']) as $k => $v) { $res[$v][] = $_value['URL']; } } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/n3mpX
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $_value, !2 = $_key, !3 = $v, !4 = $k, !5 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   22     1      > FE_RESET_R                                       $7      !0, ->18
          2    > > FE_FETCH_R                                       ~8      $7, !1, ->18
          3    >   ASSIGN                                                   !2, ~8
   24     4        INIT_FCALL                                               'array_keys'
          5        FETCH_DIM_R                                      ~10     !1, 'WORLD'
          6        SEND_VAL                                                 ~10
          7        DO_ICALL                                         $11     
          8      > FE_RESET_R                                       $12     $11, ->16
          9    > > FE_FETCH_R                                       ~13     $12, !3, ->16
         10    >   ASSIGN                                                   !4, ~13
   26    11        FETCH_DIM_R                                      ~17     !1, 'URL'
         12        FETCH_DIM_W                                      $15     !5, !3
         13        ASSIGN_DIM                                               $15
         14        OP_DATA                                                  ~17
   24    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $12
   22    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $7
   30    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !5
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.65 ms | 1441 KiB | 16 Q