3v4l.org

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

preferences:
34.74 ms | 402 KiB | 5 Q