3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array('0'=>'20-05-2015','1'=>'02-01-2015','2'=>'30-03-2015','3'=>'10-01-1990'); echo "Latest Date: ". max($dates)."\n"; // should be 20th of May 2015, but it isn't. echo "Earliest Date: ". min($dates)."\n"; // should be 10th of Jan 1990, but it isn't.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cj3eq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'max'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      'Latest+Date%3A+', $2
          5        CONCAT                                           ~4      ~3, '%0A'
          6        ECHO                                                     ~4
    5     7        INIT_FCALL                                               'min'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        CONCAT                                           ~6      'Earliest+Date%3A+', $5
         11        CONCAT                                           ~7      ~6, '%0A'
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.08 ms | 1001 KiB | 15 Q