3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( 'fournisseurs_1331566668.csv' => array( 'name' => 'fournisseurs_1331566668.csv', 'date' => 1331566694 ), 'fournisseurs_1385460508.csv' => array( 'name' => 'fournisseurs_1385460508.csv', 'date' => 1385460517 ), 'fournisseurs_1334062493.csv' => array( 'name' => 'fournisseurs_1334062493.csv', 'date' => 1334062505 ), ); uasort($array, function($a, $b){ if ($a['date'] == $b['date']) { return 0; } return ($a['date'] < $b['date']) ? +1 : -1; }); var_dump( $array );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QSXOG
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>
   18     1        INIT_FCALL                                                   'uasort'
          2        SEND_REF                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   23     4        SEND_VAL                                                     ~2
   18     5        DO_ICALL                                                     
   25     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QSXOG
function name:  {closure:/in/QSXOG:18}
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   19     2        FETCH_DIM_R                                          ~2      !0, 'date'
          3        FETCH_DIM_R                                          ~3      !1, 'date'
          4        IS_EQUAL                                                     ~2, ~3
          5      > JMPZ                                                         ~4, ->7
   20     6    > > RETURN                                                       0
   22     7    >   FETCH_DIM_R                                          ~5      !0, 'date'
          8        FETCH_DIM_R                                          ~6      !1, 'date'
          9        IS_SMALLER                                                   ~5, ~6
         10      > JMPZ                                                         ~7, ->13
         11    >   QM_ASSIGN                                            ~8      1
         12      > JMP                                                          ->14
         13    >   QM_ASSIGN                                            ~8      -1
         14    > > RETURN                                                       ~8
   23    15*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.7 ms | 2945 KiB | 15 Q