3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = date('l'); if($test = "Sunday"){ $end = strtotime('Sunday last week'); $start = strtotime('Monday last week'); }else{ $end = strtotime('Sunday this week'); $start = strtotime('Monday last week'); } echo $end; echo '<br>'; echo $start;
based on VEfT8
Output for 5.6.23 - 5.6.28, 7.0.8 - 7.3.0rc4
1449356400<br>1448838000
Output for 5.5.0 - 5.6.22, 7.0.0 - 7.0.7
1449961200<br>1449442800