3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ [ "date" => ["from_date" => "2018-07-07", "to_date" => "2018-07-07"], "post" => "Special: Pferdefotografie" ], [ "date" => ["from_date" => "2018-07-21", "to_date" => "2018-07-21"], "post" => "Fotoexkursion Südafrika" ], [ "date" => ["from_date" => "2018-07-21", "to_date" => "2018-07-21"], "post" => "Fotoexkursion Landschaftsfotografie" ], [ "date" => ["from_date" => "2018-07-21", "to_date" => "2018-07-21"], "post" => "Bildaufbau und Komposition" ], [ "date" => ["from_date" => "2018-07-22", "to_date" => "2018-07-22"], "post" => "Bildaufbau und Komposition" ] ], [ [ "date" => ["from_date" => "2018-08-11", "to_date" => "2018-08-11"], "post" => "Bildaufbau und Komposition" ], [ "date" => ["from_date" => "2018-08-04", "to_date" => "2018-08-04"], "post" => "Makrofotografie 1" ], [ "date" => ["from_date" => "2018-08-26", "to_date" => "2018-08-26"], "post" => "Tierfotografie 2" ], [ "date" => ["from_date" => "2018-08-19", "to_date" => "2018-08-19"], "post" => "Tierfotografie 1" ] ], [ [ "date" => ["from_date" => "2018-09-15", "to_date" => "2018-09-15"], "post" => "Bildaufbau und Komposition" ], [ "date" => ["from_date" => "2018-09-02", "to_date" => "2018-09-02"], "post" => "Makrofotografie 2" ], [ "date" => ["from_date" => "2018-09-01", "to_date" => "2018-09-01"], "post" => "Makrofotografie 1" ] ] ]; foreach ($array as &$set) { usort($set, function ($a, $b) { return strcmp($a['date']['from_date'], $b['date']['from_date']); }); } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/AXsqR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   59     1      > FE_RESET_RW                                      $3      !0, ->9
          2    > > FE_FETCH_RW                                              $3, !1, ->9
   60     3    >   INIT_FCALL                                               'usort'
          4        SEND_REF                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   62     6        SEND_VAL                                                 ~4
   60     7        DO_ICALL                                                 
   59     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $3
   65    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > 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/AXsqR
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   60     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   61     2        INIT_FCALL                                               'strcmp'
          3        FETCH_DIM_R                                      ~2      !0, 'date'
          4        FETCH_DIM_R                                      ~3      ~2, 'from_date'
          5        SEND_VAL                                                 ~3
          6        FETCH_DIM_R                                      ~4      !1, 'date'
          7        FETCH_DIM_R                                      ~5      ~4, 'from_date'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10      > RETURN                                                   $6
   62    11*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.03 ms | 1003 KiB | 16 Q