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")); else{ $day3="Wednesday ".date('m-d-Y',strtotime("next Wednesday")); } $day4="Thursday ".date('m-d-Y',strtotime("next Thursday")); } echo "day1 -->".$day1."day2 -->".$day2."day3 -->".$day3."day4 -->".$day4;
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/onY9B on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ELSE in /in/onY9B on line 14
Process exited with code 255.