3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sort3210ASC($a, $b) { if ($a[3] !== $b[3]) return $a[3] <=> $b[3]; if ($a[2] !== $b[2]) return $a[2] <=> $b[2]; if ($a[1] !== $b[1]) return $a[1] <=> $b[1]; if ($a[0] !== $b[0]) return $a[0] <=> $b[0]; return 0; } $dud = [[2,3,"2018-07-19","08:23",1], [2,3,"2018-07-19","08:30",2], [2,1,"2018-07-19","08:14",3], [2,4,"2018-07-19","07:11",4], [2,1,"2018-07-19","07:17",5], [2,9,"2018-07-19","07:31",6], [2,4,"2018-07-19","05:06",7], [2,6,"2018-07-18","08:10",8], [2,9,"2018-07-19","07:20",9], [1,7,"2018-07-19","08:27",10], [1,5,"2018-07-19","08:11",11], [1,7,"2018-07-18","08:22",12], [1,5,"2018-07-19","08:09",13], [2,6,"2018-07-18","07:12",14], [1,7,"2018-07-18","08:21",15], [1,7,"2018-07-19","07:09",16]]; array_multisort( array_column($dud, 0), array_column($dud, 1), array_column($dud, 2), array_column($dud, 3), $dud ); var_export($dud);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1jTL
function name:  (null)
number of ops:  28
compiled vars:  !0 = $dud
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   27     1        INIT_FCALL                                               'array_multisort'
   28     2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $2      
          6        SEND_VAL                                                 $2
   29     7        INIT_FCALL                                               'array_column'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $3      
         11        SEND_VAL                                                 $3
   30    12        INIT_FCALL                                               'array_column'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $4      
         16        SEND_VAL                                                 $4
   31    17        INIT_FCALL                                               'array_column'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 3
         20        DO_ICALL                                         $5      
         21        SEND_VAL                                                 $5
   32    22        SEND_REF                                                 !0
         23        DO_ICALL                                                 
   35    24        INIT_FCALL                                               'var_export'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Function sort3210asc:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1jTL
function name:  sort3210ASC
number of ops:  36
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        FETCH_DIM_R                                      ~2      !0, 3
          3        FETCH_DIM_R                                      ~3      !1, 3
          4        IS_NOT_IDENTICAL                                         ~2, ~3
          5      > JMPZ                                                     ~4, ->10
          6    >   FETCH_DIM_R                                      ~5      !0, 3
          7        FETCH_DIM_R                                      ~6      !1, 3
          8        SPACESHIP                                        ~7      ~5, ~6
          9      > RETURN                                                   ~7
    4    10    >   FETCH_DIM_R                                      ~8      !0, 2
         11        FETCH_DIM_R                                      ~9      !1, 2
         12        IS_NOT_IDENTICAL                                         ~8, ~9
         13      > JMPZ                                                     ~10, ->18
         14    >   FETCH_DIM_R                                      ~11     !0, 2
         15        FETCH_DIM_R                                      ~12     !1, 2
         16        SPACESHIP                                        ~13     ~11, ~12
         17      > RETURN                                                   ~13
    5    18    >   FETCH_DIM_R                                      ~14     !0, 1
         19        FETCH_DIM_R                                      ~15     !1, 1
         20        IS_NOT_IDENTICAL                                         ~14, ~15
         21      > JMPZ                                                     ~16, ->26
         22    >   FETCH_DIM_R                                      ~17     !0, 1
         23        FETCH_DIM_R                                      ~18     !1, 1
         24        SPACESHIP                                        ~19     ~17, ~18
         25      > RETURN                                                   ~19
    6    26    >   FETCH_DIM_R                                      ~20     !0, 0
         27        FETCH_DIM_R                                      ~21     !1, 0
         28        IS_NOT_IDENTICAL                                         ~20, ~21
         29      > JMPZ                                                     ~22, ->34
         30    >   FETCH_DIM_R                                      ~23     !0, 0
         31        FETCH_DIM_R                                      ~24     !1, 0
         32        SPACESHIP                                        ~25     ~23, ~24
         33      > RETURN                                                   ~25
    7    34    > > RETURN                                                   0
    8    35*     > RETURN                                                   null

End of function sort3210asc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.88 ms | 1405 KiB | 19 Q