3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_date = "08/02/2012"; $todays_date = date("d/m/Y"); var_dump(strtotime($test_date)); var_dump(strtotime($todays_date)); if (strtotime($test_date) < strtotime($todays_date)) { echo "Past"; } else { echo "Future"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSTHD
function name:  (null)
number of ops:  29
compiled vars:  !0 = $test_date, !1 = $todays_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '08%2F02%2F2012'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd%2Fm%2FY'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'strtotime'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'strtotime'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $9      
         20        INIT_FCALL                                               'strtotime'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $10     
         23        IS_SMALLER                                               $9, $10
         24      > JMPZ                                                     ~11, ->27
   10    25    >   ECHO                                                     'Past'
         26      > JMP                                                      ->28
   14    27    >   ECHO                                                     'Future'
   16    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.41 ms | 1395 KiB | 19 Q