3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = ['20-05-2015', '02-01-2015', '30-03-2015', '10-01-1990']; array_multisort(array_map('strtotime', $dates), $dates); printf( "Latest Date: %s\nEarliest Date: %s", $dates[array_key_last($dates)], $dates[0] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1hKGD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_multisort'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAL                                                 $2
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'printf'
    7    10        SEND_VAL                                                 'Latest+Date%3A+%25s%0AEarliest+Date%3A+%25s'
    8    11        INIT_FCALL                                               'array_key_last'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        FETCH_DIM_R                                      ~5      !0, $4
         15        SEND_VAL                                                 ~5
    9    16        FETCH_DIM_R                                      ~6      !0, 0
         17        SEND_VAL                                                 ~6
    6    18        DO_ICALL                                                 
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.67 ms | 1004 KiB | 17 Q