3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date("Y-m-d", strtotime('monday last week')), "\n"; echo date("Y-m-d", strtotime('last day of previous month')), "\n";
based on Qu88q
Output for 5.6.0 - 7.3.0alpha1
2016-10-24 2016-10-31