3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = [ [ ["startDate" => "2022-01-01", "endDate" => "2022-01-31"], ["startDate" => "2022-02-01", "endDate" => "2022-02-28"], ["startDate" => "", "endDate" => "", "bannerUrl" => "https://commons.wikimedia.org/wiki/File:Red_rose_flower_detailed_imge.jpg", "imageTarget" => "image Target"] ], [ ["startDate" => "2022-01-01", "endDate" => "2022-01-15"] ] ]; $array2 = [ [ ['image' => (object) ["image A object...."]], ['image' => (object) ["image B object...."]] ], [ ['image' => (object) ["image C object...."]] ], ]; foreach ($array2 as $i1 => $rows) { foreach ($rows as $i2 => $row) { $array1[$i1][$i2] += $row; } } var_export($array1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 23
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/KkHoT
function name:  (null)
number of ops:  30
compiled vars:  !0 = $array1, !1 = $array2, !2 = $rows, !3 = $i1, !4 = $row, !5 = $i2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   16     1        CAST                                              8  ~7      <array>
          2        INIT_ARRAY                                           ~8      ~7, 'image'
          3        INIT_ARRAY                                           ~9      ~8
          4        CAST                                              8  ~10     <array>
          5        INIT_ARRAY                                           ~11     ~10, 'image'
          6        ADD_ARRAY_ELEMENT                                    ~9      ~11
          7        INIT_ARRAY                                           ~12     ~9
          8        CAST                                              8  ~13     <array>
          9        INIT_ARRAY                                           ~14     ~13, 'image'
         10        INIT_ARRAY                                           ~15     ~14
         11        ADD_ARRAY_ELEMENT                                    ~12     ~15
   14    12        ASSIGN                                                       !1, ~12
   24    13      > FE_RESET_R                                           $17     !1, ->25
         14    > > FE_FETCH_R                                           ~18     $17, !2, ->25
         15    >   ASSIGN                                                       !3, ~18
   25    16      > FE_RESET_R                                           $20     !2, ->23
         17    > > FE_FETCH_R                                           ~21     $20, !4, ->23
         18    >   ASSIGN                                                       !5, ~21
   26    19        FETCH_DIM_RW                                         $23     !0, !3
         20        ASSIGN_DIM_OP                    +=               1          $23, !5
         21        OP_DATA                                                      !4
   25    22      > JMP                                                          ->17
         23    >   FE_FREE                                                      $20
   24    24      > JMP                                                          ->14
         25    >   FE_FREE                                                      $17
   29    26        INIT_FCALL                                                   'var_export'
         27        SEND_VAR                                                     !0
         28        DO_ICALL                                                     
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.83 ms | 2041 KiB | 14 Q