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" ) { $link = date('m-d-y', $checkdate); echo '<a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report '.$link.'.pdf">Market Reports</a>'; } }
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected 'for' (T_FOR) in /in/G4Rv8 on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_FOR in /in/G4Rv8 on line 13
Process exited with code 255.