3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $startingDate = strtotime('2013-06-07'); $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>'; } }
Output for 5.1.0 - 7.1.0
<a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report 06-14-13.pdf">Market Reports</a><a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report 06-07-13.pdf">Market Reports</a>
Output for 4.3.0 - 5.0.5