3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo ($now = strtotime('+1 day')) . ' - ' . date('d-m-Y H.i.s', $now) . "\n"; echo ($last = strtotime('last week', $now)) . ' - ' . date('d-m-Y H.i.s', $last) . "\n"; echo ($next = strtotime('+1 week', $last)) . ' - ' . date('d-m-Y H.i.s', $next) . "\n"; ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1358415760 - 17-01-2013 10.42.40 1357551760 - 07-01-2013 10.42.40 1358156560 - 14-01-2013 10.42.40
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.2.17
1358415760 - 17-01-2013 10.42.40 1357810960 - 10-01-2013 10.42.40 1358415760 - 17-01-2013 10.42.40
Output for 5.0.0 - 5.0.2
1358377200 - 17-01-2013 00.00.00 1357772400 - 10-01-2013 00.00.00 1358377200 - 17-01-2013 00.00.00