3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $today=date("D"); $time1=strtotime("now"); $time2=strtotime("11:59pm"); //echo date('m-d-Y',strtotime("next Thursday")); //echo $today; if ($today=="Tue" || $today=="Wed" ) { $day1="Friday ".date('m-d-Y',strtotime("next Friday")); $day2="Tuesday ".date('m-d-Y',strtotime("next Tuesday")); if ($today=="Tue") { $day3="Wednesday ".date('m-d-Y',strtotime("+1 week 1 days")); $day4="Thursday ".date('m-d-Y',strtotime("next Thursday")); } else{ $day3="Wednesday ".date('m-d-Y',strtotime("next Wednesday")); $day4="Thursday ".date('m-d-Y',strtotime("next Thursday")); } }
Output for 4.3.0 - 7.1.0