3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sunday = strtotime("next Sunday"); $saturday = $sunday + 60 * 60 * 24 * 7; echo date('m/d/Y', $sunday).'\n'; echo date('m/d/Y', $saturday);
based on gYMt9
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
10/26/2014\n11/01/2014
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
11/01/2014\n11/08/2014