3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = date(); $end = $start - 60 * 60 * 24 * 7; foreach ( $date = $start; $date <= $end; $date -= 60 * 60 * 24) { if ( strftime('%w', $date) == 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/nsYld on line 8
Process exited with code 255.

preferences:
165.23 ms | 1395 KiB | 51 Q