3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_date = "08/02/2012"; $todays_date = date("d/m/Y"); 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 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dtVQa
function name:  (null)
number of ops:  17
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                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        IS_SMALLER                                               $5, $6
         12      > JMPZ                                                     ~7, ->15
    7    13    >   ECHO                                                     'Past'
         14      > JMP                                                      ->16
   11    15    >   ECHO                                                     'Future'
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1395 KiB | 17 Q