3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'date' => ['03/11/2019', '03/19/2019', '03/15/2019', '12/15/2018'], 'name' => ['Lowa', 'Stephanie', 'Allan', 'Joffer'], 'number' => [178989898, 111111111, 222222222, 333333333], 'unit' => ['HR', 'VPP', '', 'OAT'], 'department' => ['Chemistry', 'IT', 'Lab', 'Contractor'], ]; array_multisort( array_map(fn($dmY) => date_create_from_format('d/m/Y', $dmY), $array['date']), SORT_DESC, $array['date'], $array['name'], $array['number'], $array['unit'], $array['department'], ); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NPHAk
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'array_multisort'
   12     2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        SEND_VAL                                                 ~2
          5        FETCH_DIM_R                                      ~3      !0, 'date'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        SEND_VAL                                                 $4
   13     9        SEND_VAL                                                 3
   14    10        FETCH_DIM_W                                      $5      !0, 'date'
         11        SEND_REF                                                 $5
   15    12        FETCH_DIM_W                                      $6      !0, 'name'
         13        SEND_REF                                                 $6
   16    14        FETCH_DIM_W                                      $7      !0, 'number'
         15        SEND_REF                                                 $7
   17    16        FETCH_DIM_W                                      $8      !0, 'unit'
         17        SEND_REF                                                 $8
   18    18        FETCH_DIM_W                                      $9      !0, 'department'
         19        SEND_REF                                                 $9
   11    20        DO_ICALL                                                 
   20    21        INIT_FCALL                                               'var_export'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > 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/NPHAk
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $dmY
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'date_create_from_format'
          2        SEND_VAL                                                 'd%2Fm%2FY'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.78 ms | 1009 KiB | 17 Q