3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = time(); $end = $start - 60 * 60 * 24 * 7; foreach ($checkdate=$start;$checkdate<=$end; $checkdate -=(60 * 60 * 24)) { if ( strftime('%w', $checkdate) == 5 ) { $link = strftime('%A %Y-%m-%d', $date); } } echo $link;
Output for 5.3.0 - 5.3.26, 5.4.0 - 5.4.16
Parse error: syntax error, unexpected ';' in /in/Z0QJ0 on line 8
Process exited with code 255.

preferences:
176.69 ms | 1395 KiB | 51 Q