3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print(date('Y w', strtotime('Monday', strtotime('yesterday')))."\n"); print(date('Y w', strtotime('Monday this week', strtotime('yesterday')))."\n"); print(date('Y w', strtotime('this Monday', strtotime('yesterday')))."\n"); print(date('Y w', strtotime('last Monday', strtotime('yesterday')))."\n");
based on 9Jn1v
Output for 5.6.23 - 5.6.28, 7.0.8 - 7.2.0
2016 1 2015 1 2016 1 2015 1
Output for 5.5.0 - 5.6.22, 7.0.0 - 7.0.7
2016 1 2016 1 2016 1 2015 1