3v4l.org

run code in 300+ PHP versions simultaneously
<?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.16
Parse error: syntax error, unexpected 'for' (T_FOR) in /in/G4Rv8 on line 13
Process exited with code 255.
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'for' (T_FOR) in Np7kT on line 13
Process exited with code 255.
Output for 5.3.25 - 5.3.26
Parse error: syntax error, unexpected T_FOR in /in/G4Rv8 on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_FOR in Np7kT on line 13
Process exited with code 255.

preferences:
169.64 ms | 1395 KiB | 51 Q