3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(date("r", strtotime('last Monday August 2012')));
Output for 5.1.0 - 7.1.0
string(31) "Mon, 30 Jul 2012 00:00:00 +0200"
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
string(31) "Wed, 01 Aug 2012 00:00:00 +0200"
Output for 4.3.5 - 4.3.10, 5.0.0 - 5.0.3
string(31) "Wed, 1 Aug 2012 00:00:00 +0200"
Output for 4.3.0 - 4.3.4
string(31) "Sat, 2 Feb 2019 00:00:00 +0100"