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"); 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/SiEdE
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 >   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        INIT_FCALL                                               'strtotime'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $8      
         23        IS_SMALLER                                               $7, $8
         24      > JMPZ                                                     ~9, ->27
    7    25    >   ECHO                                                     'Past'
         26      > JMP                                                      ->28
   11    27    >   ECHO                                                     'Future'
   13    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.73 ms | 1395 KiB | 19 Q