3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.35, 5.5.37 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
1358415760 - 17-01-2013 10.42.40 1357551760 - 07-01-2013 10.42.40 1358156560 - 14-01-2013 10.42.40
Output for 7.3.32 - 7.3.33, 7.4.26, 8.0.13
1358415760 - 17-01-2013 09.42.40 1357551760 - 07-01-2013 09.42.40 1358156560 - 14-01-2013 09.42.40
Output for 5.5.36
1358415761 - 17-01-2013 10.42.41 1357551761 - 07-01-2013 10.42.41 1358156561 - 14-01-2013 10.42.41
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.3 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 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

preferences:
293.5 ms | 401 KiB | 425 Q