3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_date = date("d/m/Y", mktime(0, 0, 0, 2, 8, 2012)); //"08/02/2012"; $todays_date = date("d/m/Y", strtotime('now')); echo strtotime($test_date)." ".strtotime($todays_date)."<br />"; 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 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UJ1B1
function name:  (null)
number of ops:  43
compiled vars:  !0 = $test_date, !1 = $todays_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd%2Fm%2FY'
          2        INIT_FCALL                                               'mktime'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 8
          8        SEND_VAL                                                 2012
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        ASSIGN                                                   !0, $3
    3    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'd%2Fm%2FY'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 'now'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                         $6      
         20        ASSIGN                                                   !1, $6
    5    21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $8      
         24        CONCAT                                           ~9      $8, '+'
         25        INIT_FCALL                                               'strtotime'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $10     
         28        CONCAT                                           ~11     ~9, $10
         29        CONCAT                                           ~12     ~11, '%3Cbr+%2F%3E'
         30        ECHO                                                     ~12
    7    31        INIT_FCALL                                               'strtotime'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $13     
         34        INIT_FCALL                                               'strtotime'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $14     
         37        IS_SMALLER                                               $13, $14
         38      > JMPZ                                                     ~15, ->41
    9    39    >   ECHO                                                     'Past'
         40      > JMP                                                      ->42
   13    41    >   ECHO                                                     'Future'
   15    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.5 ms | 1400 KiB | 19 Q