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(&$v) { array_multisort(array_column($v, 'start'), $v); }); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PeSjL
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]
   94     4        SEND_VAL                                                 ~2
   92     5        DO_ICALL                                                 
   96     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/PeSjL
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   92     0  E >   RECV                                             !0      
   93     1        INIT_FCALL                                               'array_multisort'
          2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'start'
          5        DO_ICALL                                         $1      
          6        SEND_VAL                                                 $1
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
   94     9      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1013 KiB | 17 Q