3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 695 => [ 0 => [ '00:00', '01:00', '01:30', '03:30', '04:00', ] ], 700 => [ 1 => [ '00:00', '00:30', '01:00', '01:30', '02:00', ], 2 => [ '00:00', '00:30', '09:00', '06:30', '07:00', ] ] ]; var_export( array_map( fn($rows) => array_values( array_unique( array_merge(...$rows) ) ), $array ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3d3gG
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   31     1        INIT_FCALL                                               'var_export'
   32     2        INIT_FCALL                                               'array_map'
   33     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   38     4        SEND_VAL                                                 ~2
   39     5        SEND_VAR                                                 !0
   32     6        DO_ICALL                                         $3      
   39     7        SEND_VAR                                                 $3
   31     8        DO_ICALL                                                 
   41     9      > 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/3d3gG
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   RECV                                             !0      
   34     1        INIT_FCALL                                               'array_values'
   35     2        INIT_FCALL                                               'array_unique'
   36     3        INIT_FCALL                                               'array_merge'
          4        SEND_UNPACK                                              !0
          5        CHECK_UNDEF_ARGS                                         
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
   35     8        DO_ICALL                                         $2      
   36     9        SEND_VAR                                                 $2
   34    10        DO_ICALL                                         $3      
   36    11      > RETURN                                                   $3
   38    12*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.67 ms | 1004 KiB | 18 Q