3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = time(); $end = $start - 60 * 60 * 24 * 7; for($checkdate=$start;$checkdate<=$end; $checkdate -=(60 * 60 * 24)) { if ( date('N', $checkdate) == 5 ) { $link = date('m-d-y', $date); // 05-24-13 } } echo $link;
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: link in /in/leUmC on line 17
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: link in /in/leUmC on line 17