3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = '05/02/2014 10:18:28 am'; $aWeekLater = date('Y-m-d H:i:s', strtotime($t.' -1 week')); $curDate = date('Y-m-d H:i:s'); if ($curDate < $aWeekLater) { echo 'xxx'; } else { echo 'yyy'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UBvnE
function name:  (null)
number of ops:  20
compiled vars:  !0 = $t, !1 = $aWeekLater, !2 = $curDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '05%2F02%2F2014+10%3A18%3A28+am'
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        INIT_FCALL                                               'strtotime'
          4        CONCAT                                           ~4      !0, '+-1+week'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    7    14        IS_SMALLER                                               !2, !1
         15      > JMPZ                                                     ~10, ->18
    8    16    >   ECHO                                                     'xxx'
         17      > JMP                                                      ->19
   10    18    >   ECHO                                                     'yyy'
   11    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.74 ms | 1395 KiB | 17 Q