3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(date('r', strtotime('2014-02-28 - 7 days next saturday'))); var_dump(date('r', strtotime('2014-03-1 - 7 days next saturday')));
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(31) "Sat, 22 Feb 2014 00:00:00 +0100" string(31) "Sat, 22 Feb 2014 00:00:00 +0100"
Output for 5.1.0 - 5.1.1
string(31) "Thu, 01 Jan 1970 01:00:00 +0100" string(31) "Thu, 01 Jan 1970 01:00:00 +0100"
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
string(31) "Fri, 07 Mar 2014 00:00:00 +0100" string(31) "Sat, 08 Mar 2014 00:00:00 +0100"
Output for 4.3.0 - 4.3.10, 5.0.0 - 5.0.3
string(31) "Fri, 7 Mar 2014 00:00:00 +0100" string(31) "Sat, 8 Mar 2014 00:00:00 +0100"