3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <head> <title>Test page</title> </head> <body> <div id="message"> <p> <?php $lucky_year = (date('Y') == '2013') ? 'Yes it is my lucky year 2013!' : 'Darn.. it is '.date('Y').', but my lucky year is 2013.'; echo $lucky_year; ?> </p> </div> </body> </html>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<html> <head> <title>Test page</title> </head> <body> <div id="message"> <p> Yes it is my lucky year 2013!</p> </div> </body> </html>