3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1 => [ [ 'class' => 'Advanced Hip Hop Ages 10+', 'session' => 0, 'start' => 1436902200, 'end' => 1436905800, 'capacity' => null, 'students' => 1 ], [ 'class' => 'Intermediate Hip Hop Ages 9+', 'session' => 0, 'start' => 1436899500, 'end' => 1436902200, 'capacity' => null, 'students' => 1 ], [ 'class' => 'Beginning Pointe Ages 10+', 'session' => 0, 'start' => 1436896800, 'end' => 1436899500, 'capacity' => null, 'students' => 1 ], [ 'class' => 'Int/Adv Ballet Ages 10+', 'session' => 0, 'start' => 1436889600, 'end' => 1436896800, 'capacity' => 15, 'students' => 1 ], [ 'class' => 'Beginning Ballet 8+ year olds', 'session' => 0, 'start' => 1436884200, 'end' => 1436891400, 'capacity' => 15, 'students' => 1 ] ], 2 => [ [ 'class' => 'Intermediate Technique/Progressions Ages 9+', 'session' => 0, 'start' => 1436899500, 'end' => 1436904900, 'capacity' => null, 'students' => 1 ], [ 'class' => 'Int/Adv Tap Ages 9+', 'session' => 0, 'start' => 1436895900, 'end' => 1436899500, 'capacity' => null, 'students' => 1 ], [ 'class' => 'Beginning Jazz/Contemporary Technique Ages 8+', 'session' => 0, 'start' => 1436887800, 'end' => 1436893200, 'capacity' => null, 'students' => 1 ] ], 3 => [ [ 'class' => 'Int/Adv Jazz 9+', 'session' => 0, 'start' => 1436893200, 'end' => 1436898600, 'capacity' => null, 'students' => 1 ], [ 'class' => 'Int/Adv Ballet Barre Ages 9+', 'session' => 0, 'start' => 1436886000, 'end' => 1436889600, 'capacity' => null, 'students' => 1 ] ] ]; array_walk($array, function(&$a1) { usort($a1, function($a2, $b2) { return $a2['start'] <=> $b2['start']; }); }); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m6nFQ
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>
   92     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   96     4        SEND_VAL                                                 ~2
   92     5        DO_ICALL                                                 
   98     6        INIT_FCALL                                               'var_export'
          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/m6nFQ
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   92     0  E >   RECV                                             !0      
   93     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
   95     4        SEND_VAL                                                 ~1
   93     5        DO_ICALL                                                 
   96     6      > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m6nFQ
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a2, !1 = $b2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   93     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   94     2        FETCH_DIM_R                                      ~2      !0, 'start'
          3        FETCH_DIM_R                                      ~3      !1, 'start'
          4        SPACESHIP                                        ~4      ~2, ~3
          5      > RETURN                                                   ~4
   95     6*     > RETURN                                                   null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
355.62 ms | 1013 KiB | 16 Q