3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(getdate(strtotime('this Monday '.date('Y-m-01',time()))));
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(11) { ["seconds"]=> int(0) ["minutes"]=> int(0) ["hours"]=> int(0) ["mday"]=> int(3) ["wday"]=> int(1) ["mon"]=> int(2) ["year"]=> int(2014) ["yday"]=> int(33) ["weekday"]=> string(6) "Monday" ["month"]=> string(8) "February" [0]=> int(1391382000) }
Output for 4.3.0 - 5.0.5
array(11) { ["seconds"]=> int(0) ["minutes"]=> int(0) ["hours"]=> int(0) ["mday"]=> int(1) ["wday"]=> int(6) ["mon"]=> int(2) ["year"]=> int(2014) ["yday"]=> int(31) ["weekday"]=> string(8) "Saturday" ["month"]=> string(8) "February" [0]=> int(1391209200) }