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 $end;

preferences:
55.47 ms | 402 KiB | 5 Q