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 date("d/m/Y", strtotime('1343858400')); 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 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W2Sgn
function name:  (null)
number of ops:  37
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                                               'date'
         18        SEND_VAL                                                 'd%2Fm%2FY'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '1343858400'
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                         $8      
         24        ECHO                                                     $8
    7    25        INIT_FCALL                                               'strtotime'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $9      
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $10     
         31        IS_SMALLER                                               $9, $10
         32      > JMPZ                                                     ~11, ->35
    9    33    >   ECHO                                                     'Past'
         34      > JMP                                                      ->36
   13    35    >   ECHO                                                     'Future'
   15    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.48 ms | 1396 KiB | 19 Q