3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $givenday = mktime(0,0,0,01,01,2013); $Monday = strtotime("Monday this week",$givenday); echo date("D M Y H:i:s", $Monday);
Output for 5.3.0 - 7.1.0
Mon Dec 2012 00:00:00
Output for 4.3.0 - 5.2.17
Mon Jan 2013 00:00:00