3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date('Y-m-d H:m:s'); echo $date; $newdate = date('Y-m-d H:m:s', strtotime($date. ' +7 days')); echo $newdate;
Output for 4.3.6 - 7.1.0
2014-05-14 16:05:262014-05-21 16:05:26
Output for 4.3.0 - 4.3.5
2014-05-14 16:05:262014-05-15 11:05:26