3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d', strtotime('first day of this week')); echo "\n"; echo date('Y-m-d', strtotime('last day of this week'));

preferences:
34.99 ms | 402 KiB | 5 Q