3v4l.org

run code in 300+ PHP versions simultaneously
<?php $givenday = mktime(0,0,0,01,01,2013); $Monday = strtotime("First day this week",$givenday); echo date("j M Y H:i:s", $Monday);

preferences:
45.93 ms | 402 KiB | 5 Q