3v4l.org

run code in 300+ PHP versions simultaneously
<?php $log_ret_val = Array ( "0" => Array ( "0" => Array ( "TestingLogDevice" => Array ( "Siteid" => "Mirpur_CO" ) ) , "1" => Array ( "TestingLogDevice" => Array ( "Siteid" => "Mirpur_CO" ) ) , ) , "1" => Array ( "0" => Array ( "TestingLogDevice" => Array ( "Tempin" => 29 ) ) , "1" => Array ( "TestingLogDevice" => Array ( "Tempin" => 29 ) ) , ) , "2" => Array ( "0" => Array ( "TestingLogDevice" => Array ( "Date_time" => "18.11.2017 11:03:33" ) ) , "1" => Array ( "TestingLogDevice" => Array ( "Date_time" => "18.11.2017 11:00:31" ) ) ) ); $log_val = array(); foreach ($log_ret_val as $key => $value) { foreach ($value as $key1 => $value1) { if(isset($log_val[$key1])) $log_val[$key1] = array_merge_recursive($log_val[$key1],$value1); else $log_val[$key1] = array_merge_recursive($value1); } } print_r($log_val);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 26
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 24
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/NloQg
function name:  (null)
number of ops:  31
compiled vars:  !0 = $log_ret_val, !1 = $log_val, !2 = $value, !3 = $key, !4 = $value1, !5 = $key1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   13     2      > FE_RESET_R                                       $8      !0, ->26
          3    > > FE_FETCH_R                                       ~9      $8, !2, ->26
          4    >   ASSIGN                                                   !3, ~9
   14     5      > FE_RESET_R                                       $11     !2, ->24
          6    > > FE_FETCH_R                                       ~12     $11, !4, ->24
          7    >   ASSIGN                                                   !5, ~12
   15     8        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !5
          9      > JMPZ                                                     ~14, ->18
   16    10    >   INIT_FCALL                                               'array_merge_recursive'
         11        FETCH_DIM_R                                      ~16     !1, !5
         12        SEND_VAL                                                 ~16
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                         $17     
         15        ASSIGN_DIM                                               !1, !5
         16        OP_DATA                                                  $17
   15    17      > JMP                                                      ->23
   18    18    >   INIT_FCALL                                               'array_merge_recursive'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                         $19     
         21        ASSIGN_DIM                                               !1, !5
         22        OP_DATA                                                  $19
   14    23    > > JMP                                                      ->6
         24    >   FE_FREE                                                  $11
   13    25      > JMP                                                      ->3
         26    >   FE_FREE                                                  $8
   21    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.01 ms | 1000 KiB | 15 Q