3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ ["2011-11-18 00:00:00" => 'C'], ["2011-11-18 00:00:00" => 'I'], ["2011-11-18 00:00:00" => 'S'], ], [ ["2011-11-22 00:00:00" => 'C'], ["2011-11-22 00:00:00" => 'S'] ] ]; var_export( array_merge( ...array_map( fn($set) => [key($set[0]) => count($set, COUNT_RECURSIVE) - count($set)], $array ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miSZo
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'var_export'
   16     2        INIT_FCALL                                               'array_merge'
   17     3        INIT_FCALL                                               'array_map'
   18     4        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          5        SEND_VAL                                                 ~2
   19     6        SEND_VAR                                                 !0
   17     7        DO_ICALL                                         $3      
   19     8        SEND_UNPACK                                              $3
          9        CHECK_UNDEF_ARGS                                         
   16    10        DO_ICALL                                         $4      
   19    11        SEND_VAR                                                 $4
   15    12        DO_ICALL                                                 
   22    13      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miSZo
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'key'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5        INIT_FCALL                                               'count'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $3      
          9        COUNT                                            ~4      !0
         10        SUB                                              ~5      $3, ~4
         11        INIT_ARRAY                                       ~6      ~5, $2
         12      > RETURN                                                   ~6
         13*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.11 ms | 1005 KiB | 18 Q