3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sort3210ASC($a, $b) { return [$a[3], $a[2], $a[1], $a[0]] <=> [$b[3], $b[2], $b[1], $b[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]]; usort($dud, 'sort3210ASC'); var_export($dud);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jhVlp
function name:  (null)
number of ops:  9
compiled vars:  !0 = $dud
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   25     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'sort3210ASC'
          4        DO_ICALL                                                 
   26     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function sort3210asc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jhVlp
function name:  sort3210ASC
number of ops:  21
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        INIT_ARRAY                                       ~3      ~2
          4        FETCH_DIM_R                                      ~4      !0, 2
          5        ADD_ARRAY_ELEMENT                                ~3      ~4
          6        FETCH_DIM_R                                      ~5      !0, 1
          7        ADD_ARRAY_ELEMENT                                ~3      ~5
          8        FETCH_DIM_R                                      ~6      !0, 0
          9        ADD_ARRAY_ELEMENT                                ~3      ~6
    5    10        FETCH_DIM_R                                      ~7      !1, 3
         11        INIT_ARRAY                                       ~8      ~7
         12        FETCH_DIM_R                                      ~9      !1, 2
         13        ADD_ARRAY_ELEMENT                                ~8      ~9
         14        FETCH_DIM_R                                      ~10     !1, 1
         15        ADD_ARRAY_ELEMENT                                ~8      ~10
         16        FETCH_DIM_R                                      ~11     !1, 0
         17        ADD_ARRAY_ELEMENT                                ~8      ~11
         18        SPACESHIP                                        ~12     ~3, ~8
         19      > RETURN                                                   ~12
    6    20*     > RETURN                                                   null

End of function sort3210asc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.91 ms | 1428 KiB | 15 Q