3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this_thr_str = strtotime('this Thursday'); if($this_thr_str <= strtotime("now")){ echo 'This thurs<br>'; $thrs = date('mdy',$this_thr_str); }else{ echo 'Last Thurs<br>'; $thrs = strtotime('last Tuesday'); } $link = 'http://marc.ucla.edu/mpeg/Hammer'.$thrs.'.mp3'; echo $link; // //echo date('mdy',$tuestr);

preferences:
57.34 ms | 402 KiB | 5 Q