3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Notice: Undefined variable: link in /in/leUmC on line 17
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
Notice: Undefined variable: link in /in/leUmC on line 17

preferences:
184.53 ms | 402 KiB | 243 Q