3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $monday=strtotime("monday this week", mktime(0,0,0, 8, 8, 2012)); echo date("Y-m-d",$monday); // Output: 2012-08-06 ?>
Output for 5.3.0 - 7.2.0
2012-08-06
Output for 4.3.5 - 5.2.17
2012-08-13
Output for 4.3.0 - 4.3.4
2012-08-20