3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lastWeek = strtotime('-1 week'); echo $lastWeek; echo "\n"; echo date('Y-m-d', strtotime('last monday', $lastWeek)); echo "\n"; echo date('Y-m-d', strtotime('next saturday', $lastWeek));
based on DZcNY
Output for 4.4.1 - 4.4.9, 5.0.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1409136924 2014-08-25 2014-08-30
Output for 4.3.0 - 4.3.11, 5.0.3 - 5.0.4
1409136924 2014-08-25 2014-09-06
Output for 5.0.0 - 5.0.2
1409090400 2014-08-25 2014-09-06
Output for 4.4.0
1409136923 2014-08-25 2014-08-30