3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1='24/11/2013'; $date2='09/11/2013'; if(strtotime($date1)>0){ echo "valid date1"; } if(strtotime($date2)>0){ echo "valid date2"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 8
filename:       /in/hmjAf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $date1, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '24%2F11%2F2013'
    3     1        ASSIGN                                                   !1, '09%2F11%2F2013'
    4     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        IS_SMALLER                                               0, $4
          6      > JMPZ                                                     ~5, ->8
    5     7    >   ECHO                                                     'valid+date1'
    7     8    >   INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        IS_SMALLER                                               0, $6
         12      > JMPZ                                                     ~7, ->14
    8    13    >   ECHO                                                     'valid+date2'
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.86 ms | 1398 KiB | 15 Q