3v4l.org

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