3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $givenday = mktime(0,0,0,10,08,2007); $Monday = strtotime("Monday this week",$givenday); echo date("j M Y H:i:s", $Monday);
Output for 4.3.5 - 5.6.22, hhvm-3.10.0 - 3.12.0
1 Oct 2007 00:00:00
Output for 5.6.23 - 5.6.25
24 Sep 2007 00:00:00
Output for 4.3.0 - 4.3.4
8 Oct 2007 00:00:00