3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ [ 'date' => '2019-07-06 14:01:52', 'status' => 'paid', 'summ' => 100, ], [ 'date' => '2019-07-02 12:22:31', 'status' => 'pending', 'summ' => 320, ], [ 'date' => '2019-07-01 18:43:58', 'status' => 'pending', 'summ' => 100, ], [ 'date' => '2019-06-26 14:01:52', 'status' => 'canceled', 'summ' => 200, ], ]; array_multisort(array_column($test, 'status'), SORT_DESC, array_column($test, 'date'), SORT_DESC, $test); var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Caql
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'array_multisort'
          2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'status'
          5        DO_ICALL                                         $2      
          6        SEND_VAL                                                 $2
          7        SEND_VAL                                                 3
          8        INIT_FCALL                                               'array_column'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'date'
         11        DO_ICALL                                         $3      
         12        SEND_VAL                                                 $3
         13        SEND_VAL                                                 3
         14        SEND_REF                                                 !0
         15        DO_ICALL                                                 
   28    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.61 ms | 999 KiB | 16 Q