3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("81799" => Array ( "TOTAL_HITS" => 254, "UNIQUE_HITS" => 82 ) ); $b = array("81799" => Array ( "ACTIVATION" => 7561.60, "RENEWAL" => 300, "ACT_REVENUE" => 7310.22 ) ); foreach($a as $key_a => $val_a) { $temp = $b[$key_a] + $val_a; //$result[$key_a] = $b[$key_a]; $result[$key_a] = $temp; } print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/Bo0lv
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $val_a, !3 = $key_a, !4 = $temp, !5 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   16     2      > FE_RESET_R                                       $8      !0, ->11
          3    > > FE_FETCH_R                                       ~9      $8, !2, ->11
          4    >   ASSIGN                                                   !3, ~9
   18     5        FETCH_DIM_R                                      ~11     !1, !3
          6        ADD                                              ~12     ~11, !2
          7        ASSIGN                                                   !4, ~12
   20     8        ASSIGN_DIM                                               !5, !3
          9        OP_DATA                                                  !4
   16    10      > JMP                                                      ->3
         11    >   FE_FREE                                                  $8
   23    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.19 ms | 1010 KiB | 14 Q