3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on GA8D3
Output for 5.4.0 - 7.3.0beta1
2015-09-30 22:09:59Which is the later date 2015-09-30 22:09:59