3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["d" => "7 Apr 2024", "s" => "pm", "i" => "el"], ["d" => "8 Apr 2024", "s" => "am", "i" => "mn"], ["d" => "12 Apr 2024", "s" => "pm", "i" => "mr"], ["d" => "12 Apr 2024", "s" => "am", "i" => "mr"], ["d" => "12 Apr 2024", "s" => "am", "i" => "da"], ["d" => "13 Apr 2024", "s" => "pm", "i" => "li"], ["d" => "14 Apr 2024", "s" => "am", "i" => "li"], ["d" => "15 Apr 2024", "s" => "mid", "i" => "nd"], ["d" => "15 Apr 2024", "s" => "pm", "i" => "da"] ]; foreach ($array as ['d' => $d, 's' => $s, 'i' => $i]) { if (!isset($result[$d][$s])) { $result[$d][$s] = $i; } else { $result[$d][$s] .= ',' . $i; } } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 23
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/ISYY4
function name:  (null)
number of ops:  28
compiled vars:  !0 = $array, !1 = $d, !2 = $s, !3 = $i, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1      > FE_RESET_R                                       $6      !0, ->23
          2    > > FE_FETCH_R                                               $6, $7, ->23
          3    >   FETCH_LIST_R                                     $8      $7, 'd'
          4        ASSIGN                                                   !1, $8
          5        FETCH_LIST_R                                     $10     $7, 's'
          6        ASSIGN                                                   !2, $10
          7        FETCH_LIST_R                                     $12     $7, 'i'
          8        ASSIGN                                                   !3, $12
          9        FREE                                                     $7
   16    10        FETCH_DIM_IS                                     ~14     !4, !1
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~15     ~14, !2
         12        BOOL_NOT                                         ~16     ~15
         13      > JMPZ                                                     ~16, ->18
   17    14    >   FETCH_DIM_W                                      $17     !4, !1
         15        ASSIGN_DIM                                               $17, !2
         16        OP_DATA                                                  !3
   16    17      > JMP                                                      ->22
   19    18    >   CONCAT                                           ~21     '%2C', !3
         19        FETCH_DIM_RW                                     $19     !4, !1
         20        ASSIGN_DIM_OP                .=               8          $19, !2
         21        OP_DATA                                                  ~21
   15    22    > > JMP                                                      ->2
         23    >   FE_FREE                                                  $6
   22    24        INIT_FCALL                                               'var_export'
         25        SEND_VAR                                                 !4
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.21 ms | 1006 KiB | 14 Q