3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $current_dayname = date("l"); echo $date = date("Y-m-d",strtotime('monday this week')).' To '.date("Y-m-d",strtotime("sunday this week"));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2014-07-07 To 2014-07-13
Output for 4.3.5 - 5.2.17
2014-07-14 To 2014-07-13
Output for 4.3.0 - 4.3.4
2014-07-21 To 2014-07-20