3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sunday = strtotime("next Sunday"); $saturday = $sunday + 60 * 60 * 24 * 6; echo date('m/d/Y', $sunday); echo date('m/d/Y', $saturday);
based on 0vebS
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
10/26/201410/31/2014
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
11/01/201411/07/2014