3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $day = date('w'); $week_start = date('m-d-Y', strtotime('-'.$day.' days')); $week_end = date('m-d-Y', strtotime('+'.(6-$day).' days')); ?>
Output for 4.3.0 - 7.1.0