3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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'; }
based on 89GWA
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
yyy