3v4l.org

run code in 500+ PHP versions simultaneously
<?php $first = array ( '2022-10-23' => array ( 'id' => 10, 'user_id' => 1, 'notitie' => 'Mag niet !', 'datum' => '2022-10-23', 'user_role' => 'client', ), '2022-10-24' => array ( 'id' => 11, 'user_id' => 1, 'notitie' => 'Mag al helemaal niet ', 'datum' => '2022-10-24', 'user_role' => 'client', ), '2022-10-25' => array ( 'datum' => '2022-10-25', ), '2022-10-26' => array ( 'id' => 15, 'user_id' => 1, 'notitie' => '26', 'datum' => '2022-10-26', 'user_role' => 'client', ), '2022-10-27' => array ( 'datum' => '2022-10-27', ), '2022-10-28' => array ( 'datum' => '2022-10-28', ), '2022-10-29' => array ( 'datum' => '2022-10-29', ), ); $second = array ( '2022-10-23' => array ( 'id_therapeut' => 4, 'client_id' => 1, 'notitie_therapeut' => 'volgende week', 'datum_therapeut' => '2022-10-23', ), '2022-10-26' => array ( 'id_therapeut' => 5, 'client_id' => 1, 'notitie_therapeut' => 'ff', 'datum_therapeut' => '2022-10-26', ), '2022-10-28' => array ( 'id_therapeut' => 5, 'client_id' => 1, 'notitie_therapeut' => 'ff', 'datum_therapeut' => '2022-10-28', ), ); $result = []; foreach ($first as $date => $row) { $result[$date][] = [$date => $row]; } foreach ($second as $date => $row) { $result[$date][] = [$date => $row]; } var_export($result);
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
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 11
filename:       /in/ZdHcZ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $first, !1 = $second, !2 = $result, !3 = $row, !4 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   46     1        ASSIGN                                                       !1, <array>
   70     2        ASSIGN                                                       !2, <array>
   71     3      > FE_RESET_R                                           $8      !0, ->11
          4    > > FE_FETCH_R                                           ~9      $8, !3, ->11
          5    >   ASSIGN                                                       !4, ~9
   72     6        INIT_ARRAY                                           ~13     !3, !4
          7        FETCH_DIM_W                                          $11     !2, !4
          8        ASSIGN_DIM                                                   $11
          9        OP_DATA                                                      ~13
   71    10      > JMP                                                          ->4
         11    >   FE_FREE                                                      $8
   75    12      > FE_RESET_R                                           $14     !1, ->20
         13    > > FE_FETCH_R                                           ~15     $14, !3, ->20
         14    >   ASSIGN                                                       !4, ~15
   76    15        INIT_ARRAY                                           ~19     !3, !4
         16        FETCH_DIM_W                                          $17     !2, !4
         17        ASSIGN_DIM                                                   $17
         18        OP_DATA                                                      ~19
   75    19      > JMP                                                          ->13
         20    >   FE_FREE                                                      $14
   78    21        INIT_FCALL                                                   'var_export'
         22        SEND_VAR                                                     !2
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.58 ms | 2300 KiB | 14 Q