3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startDate = "2015-08-01"; $endDate = "2015-08-31"; $startDate = strtotime($startDate); $endDate = strtotime($endDate); for($i = strtotime('Friday', $startDate); $i <= $endDate; $i = strtotime('+1 week', $i)) echo date('l Y-m-d', $i);
based on KSm95
Output for 5.6.0 - 7.3.0rc4
Friday 2015-08-07Friday 2015-08-14Friday 2015-08-21Friday 2015-08-28