3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = '2016-11-05'; // sunday echo date("Y-m-d", strtotime('monday this week', strtotime($date))), "\n"; echo date("Y-m-d", strtotime('friday this week', strtotime($date))), "\n";
based on cZM0L
Output for 5.6.0 - 7.3.0rc3
2016-10-31 2016-11-04