3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tableau = array ( 'blabla 2015-01-01 taratata1', 'blabla2 2016-01-01 taratata2', 'blabla3 2010-01-01 taratata3', ); usort( $tableau, function($a, $b) { $a = explode("\t", $a); $b = explode("\t", $b); return $a[1] < $b[1]; // descendant } ); print_r($tableau);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MWcII
function name:  (null)
number of ops:  10
compiled vars:  !0 = $tableau
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        INIT_FCALL                                                   'usort'
   10     2        SEND_REF                                                     !0
   11     3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   15     4        SEND_VAL                                                     ~2
    9     5        DO_ICALL                                                     
   18     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > 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/MWcII
function name:  {closure:/in/MWcII:11}
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   12     2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '%09'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $2      
          6        ASSIGN                                                       !0, $2
   13     7        INIT_FCALL                                                   'explode'
          8        SEND_VAL                                                     '%09'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $4      
         11        ASSIGN                                                       !1, $4
   14    12        FETCH_DIM_R                                          ~6      !0, 1
         13        FETCH_DIM_R                                          ~7      !1, 1
         14        IS_SMALLER                                           ~8      ~6, ~7
         15      > RETURN                                                       ~8
   15    16*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.62 ms | 2102 KiB | 16 Q