3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '2016-11-06 12:00:00'; // 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";

preferences:
48.75 ms | 402 KiB | 5 Q