3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php $t=date("H"); if ($t<"10") { echo "Have a good morning!"; } elseif ($t<"20") { echo "Have a good day!"; } else { echo "Have a good night!"; } ?> </body> </html>
Output for 5.3.0 - 7.2.0
<!DOCTYPE html> <html> <body> Have a good day! </body> </html>