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"); 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 = 35, Position 2 = 37
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WOOV5
function name:  (null)
number of ops:  39
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        DO_ICALL                                         $5      
         16        ASSIGN                                                   !1, $5
    5    17        INIT_FCALL                                               'strtotime'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $7      
         20        CONCAT                                           ~8      $7, '+'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $9      
         24        CONCAT                                           ~10     ~8, $9
         25        CONCAT                                           ~11     ~10, '%3Cbr+%2F%3E'
         26        ECHO                                                     ~11
    7    27        INIT_FCALL                                               'strtotime'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $12     
         30        INIT_FCALL                                               'strtotime'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $13     
         33        IS_SMALLER                                               $12, $13
         34      > JMPZ                                                     ~14, ->37
    9    35    >   ECHO                                                     'Past'
         36      > JMP                                                      ->38
   13    37    >   ECHO                                                     'Future'
   15    38    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.36 ms | 1396 KiB | 19 Q