3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $day = date('w'); echo date('m-d-Y', strtotime('-'.$day.' days')); echo date('m-d-Y', strtotime('+'.(6-$day).' days'));
Output for 4.3.0 - 7.1.10
07-27-201408-02-2014