3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = date('l'); if($test = "Sunday"){ $end = strtotime('Sunday last week'); }else{ $end = strtotime('Sunday this week'); } echo strtotime('Monday this week');

preferences:
40.02 ms | 402 KiB | 5 Q