3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $current_dayname = date("l"); // return sunday monday tuesday etc. $date = date("Y-m-d",strtotime('monday this week')).'to'.date("Y-m-d",strtotime("$current_dayname this week"));
Output for 4.3.0 - 7.1.0