3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = date('l'); if($test = "Sunday"){ $end = strtotime('Sunday last week'); }else{ $end = strtotime('Sunday this week'); }
based on sAKal
Output for 5.5.0 - 7.2.0