3v4l.org

run code in 300+ PHP versions simultaneously
<?php $last_sunday = new DateTime('monday of '.date("W", strtotime("- 1 day")).' week'); $sunday = new DateTime('last sunday'); echo $last_sunday->format("j/n"); echo $sunday->format("j/n");

preferences:
49.19 ms | 402 KiB | 5 Q