3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; $monday = date('Y-m-d', strtotime('monday this week +'.$x.' week')); $tuesday = date('Y-m-d', strtotime('tuesday this week +'.$x.' week')); $wednesday = date('Y-m-d', strtotime('wednesday this week +'.$x.' week')); $thursday = date('Y-m-d', strtotime('thursday this week +'.$x.' week')); $friday = date('Y-m-d', strtotime('friday this week +'.$x.' week')); $saturday = date('Y-m-d', strtotime('saturday this week +'.$x.' week')); $sunday = date('Y-m-d', strtotime('sunday this week +'.$x.' week')); var_dump($monday, $tuesday, $wednesday, $thursday, $friday, $saturday, $sunday);

preferences:
171.64 ms | 406 KiB | 5 Q