3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);