3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monday = strtotime('monday this week'); $sunday = strtotime('sunday this week'); echo date("Y-m-d", $monday)."\n"; echo date("Y-m-d", $sunday);

preferences:
32.51 ms | 405 KiB | 5 Q