3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ '2023-02-04 14:00:00', '2023-01-08 12:00:00', '2023-01-03 12:00:00', '2023-01-03 12:00:00', '2021-01-03 12:00:00', '2023-01-05 14:00:00', '2024-01-03 12:00:00', '2023-01-03 12:00:00', ]; $coll = Collator::create('de'); $coll->asort($arr, Collator::SORT_REGULAR); echo json_encode($arr, JSON_PRETTY_PRINT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fVcRj
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $coll
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_STATIC_METHOD_CALL                                      'Collator', 'create'
          2        SEND_VAL_EX                                                  'de'
          3        DO_FCALL                                          0  $3      
          4        ASSIGN                                                       !1, $3
   16     5        INIT_METHOD_CALL                                             !1, 'asort'
          6        SEND_VAR_EX                                                  !0
          7        FETCH_CLASS_CONSTANT                                 ~5      'Collator', 'SORT_REGULAR'
          8        SEND_VAL_EX                                                  ~5
          9        DO_FCALL                                          0          
   18    10        INIT_FCALL                                                   'json_encode'
         11        SEND_VAR                                                     !0
         12        SEND_VAL                                                     128
         13        DO_ICALL                                             $7      
         14        ECHO                                                         $7
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.74 ms | 478 KiB | 8 Q