3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ['Out Of Warranty', 'Total Orders', 'Total Qty', 'Canceled Orders'], ['Today<br/>(04-26-2020)', 1, 1, 0], ['Yesterday<br/>(04-25-2020)', 0, 0, 0], ['This Week<br/>(04-20-2020 - 04-26-2020)', 22, 39, 0], ['Last Week<br/>(04-13-2020 - 04-19-2020)', 7, 7, 0], ['This Month<br/>(04-01-2020 - 04-26-2020)', 29, 46, 0], ['This Year<br/>(01-01-2020 - 04-26-2020)', 30, 47, 0], ]; $array2 = [ ['Out Of Warranty', 'Total Orders', 'Total Qty', 'Canceled Orders'], ['Today<br/>(04-24-2020)', 10, 10, 0], ['Yesterday<br/>(04-23-2020)', 7, 7, 0], ['This Week<br/>(04-20-2020 - 04-24-2020)', 51, 51, 0], ['Last Week<br/>(04-13-2020 - 04-19-2020)', 31, 31, 0], ['This Month<br/>(04-01-2020 - 04-24-2020)', 93, 93, 0], ['This Year<br/>(01-01-2020 - 04-24-2020)', 1281, 1281, 1], ]; for ($i = 1, $size = count($array2); $i < $size; ++$i) { for ($col = 1; $col <= 3; ++$col) { $array1[$i][$col] += $array2[$i][$col]; } } var_export($array1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
Branch analysis from position: 6
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/T2Gp3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array1, !1 = $array2, !2 = $i, !3 = $size, !4 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   21     2        ASSIGN                                                   !2, 1
          3        COUNT                                            ~8      !1
          4        ASSIGN                                                   !3, ~8
          5      > JMP                                                      ->17
   22     6    >   ASSIGN                                                   !4, 1
          7      > JMP                                                      ->14
   23     8    >   FETCH_DIM_R                                      ~13     !1, !2
          9        FETCH_DIM_R                                      ~14     ~13, !4
         10        FETCH_DIM_RW                                     $11     !0, !2
         11        ASSIGN_DIM_OP                +=               1          $11, !4
         12        OP_DATA                                                  ~14
   22    13        PRE_INC                                                  !4
         14    >   IS_SMALLER_OR_EQUAL                                      !4, 3
         15      > JMPNZ                                                    ~16, ->8
   21    16    >   PRE_INC                                                  !2
         17    >   IS_SMALLER                                               !2, !3
         18      > JMPNZ                                                    ~18, ->6
   26    19    >   INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.65 ms | 1395 KiB | 15 Q