3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = date( "Y-m-d 11:00:00", strtotime("2 Sunday ago")); $end = date( "Y-m-d 11:00:00", strtotime("Last Sunday")); echo $start . ' - ' . $end;
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
2016-10-23 11:00:00 - 2016-10-30 11:00:00
Output for 5.1.0 - 5.2.17
2016-10-30 11:00:00 - 2016-10-30 11:00:00
Output for 4.3.0 - 5.0.5
1970-01-01 11:00:00 - 2016-10-30 11:00:00