3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Europe/London"); #date_default_timezone_set("Pacific/Auckland"); $date_format = 'Ymd'; $day = "Sunday 4 week ago"; $start_of_the_week = strtotime($day); $next_day = $start_of_the_week + (60 * 60 * 24 * 1); $next_day = date($date_format, $next_day); echo '<h1>'.$next_day.'</h1>';

preferences:
32.33 ms | 406 KiB | 5 Q