3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = array( 13020=>array( "id"=>13020, "name"=>'Data Stream 1', "rank"=>3, "data_1"=>63, "data_2"=>256, "data_3"=>469 ), 13030=>array( "id"=>13020, "name"=>'Data Stream 1', "rank"=>3, "data_1"=>63, "data_2"=>256, "data_3"=>469 ) ); $array2 = array( 13020=>array( "percent"=>20.987654320988, "count_min"=>1, "count_max"=>'', "checked"=>false, "cond_id"=>0 ), 13030=>array( "percent"=>20.987654320988, "count_min"=>1, "count_max"=>'', "checked"=>false, "cond_id"=>0 ) ); $finalArray = []; foreach($array1 as $key=>$value){ $finalArray[$key] = $value+$array2[$key]; } print_r($finalArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/qBa4V
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array1, !1 = $array2, !2 = $finalArray, !3 = $value, !4 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   22     1        ASSIGN                                                       !1, <array>
   39     2        ASSIGN                                                       !2, <array>
   41     3      > FE_RESET_R                                           $8      !0, ->11
          4    > > FE_FETCH_R                                           ~9      $8, !3, ->11
          5    >   ASSIGN                                                       !4, ~9
   42     6        FETCH_DIM_R                                          ~12     !1, !4
          7        ADD                                                  ~13     !3, ~12
          8        ASSIGN_DIM                                                   !2, !4
          9        OP_DATA                                                      ~13
   41    10      > JMP                                                          ->4
         11    >   FE_FREE                                                      $8
   45    12        INIT_FCALL                                                   'print_r'
         13        SEND_VAR                                                     !2
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.88 ms | 2049 KiB | 14 Q