3v4l.org

run code in 300+ PHP versions simultaneously
<?php $props = [ ['name' => 'Mathmatics', 'time' => '03:01:PM - 04:50:PM'], ['name' => 'History', 'time' => '11:30:AM - 01:30:PM'], ['name' => 'French', 'time' => '01:31:PM - 03:00:PM'], ]; array_multisort( array_map( fn($row) => DateTime::createFromFormat('h:i:A+', $row['time']), $props ), $props ); var_export($props);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kfCrs
function name:  (null)
number of ops:  14
compiled vars:  !0 = $props
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_multisort'
   10     2        INIT_FCALL                                               'array_map'
   11     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkfCrs%3A11%240'
          4        SEND_VAL                                                 ~2
   12     5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAL                                                 $3
   14     8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
   17    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkfCrs%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kfCrs
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'h%3Ai%3AA%2B'
          3        FETCH_DIM_R                                      ~1      !0, 'time'
          4        SEND_VAL                                                 ~1
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
          7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkfCrs%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.83 ms | 1395 KiB | 19 Q