3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.16
Parse error: syntax error, unexpected ';' in /in/PSKDS on line 8
Process exited with code 255.