3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'Monday, September 28, 2009'; $time = strtotime($s); $end = strtotime('next sunday', $time); echo date('Y-m-d', $end); ?>
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.2.0
2009-10-04
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
2009-10-11