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).'</br>'; echo date('m/d/Y', $saturday);
based on 6rGUe
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
10/26/2014</br>11/01/2014
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
11/01/2014</br>11/08/2014