3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = FALSE; $now = date('Y-m-d H:m:s'); $future = date($now, strtotime("+60 days")) ; echo $future; echo "Which is the later date \n"; if($date >= $now) echo $date; else echo $now;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iIQms
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $now, !2 = $future
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Am%3As'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'date'
          6        SEND_VAR                                                 !1
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '%2B60+days'
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    6    13        ECHO                                                     !2
    7    14        ECHO                                                     'Which+is+the+later+date+%0A'
    8    15        IS_SMALLER_OR_EQUAL                                      !1, !0
         16      > JMPZ                                                     ~9, ->19
    9    17    >   ECHO                                                     !0
         18      > JMP                                                      ->20
   11    19    >   ECHO                                                     !1
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1395 KiB | 17 Q