3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startingDate = strtotime('2013-01-01'); $start = time(); $end = $startingDate; for($checkdate=$start;$checkdate>=$end; $checkdate -=(60 * 60 * 24)) { if ( date('N', $checkdate) == "5" ) { echo '<a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report '.date('m-d-y', $checkdate).'.pdf">Market Reports</a>'; } }

preferences:
33.02 ms | 402 KiB | 5 Q