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, fn(&$a1) => usort($a1, fn($a2, $b2) => $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/ftYfO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $a2, !2 = $b2
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                          ~4      [0]
          4        BIND_LEXICAL                                             ~4, !1
          5        BIND_LEXICAL                                             ~4, !2
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
   94     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > 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/ftYfO
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $a1, !1 = $a2, !2 = $b2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   92     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
          3        INIT_FCALL                                               'usort'
          4        SEND_REF                                                 !0
          5        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8      > RETURN                                                   $4
          9*     > 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/ftYfO
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a2, !1 = $b2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        FETCH_DIM_R                                      ~2      !0, 'start'
          3        FETCH_DIM_R                                      ~3      !1, 'start'
          4        SPACESHIP                                        ~4      ~2, ~3
          5      > RETURN                                                   ~4
          6*     > RETURN                                                   null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.37 ms | 1013 KiB | 16 Q