3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = date(); $end = $start - 60 * 60 * 24 * 7; for($checkdate=$start;$checkdate<=$end; $checkdate -=(60 * 60 * 24)) { if ( strftime('%w', $checkdate) == 5 ) { $link = strftime('%A %Y-%m-%d', $date); } } echo $link;

preferences:
51.74 ms | 402 KiB | 5 Q