3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expire=time()+60*60*24*30; setcookie("user", "Alex Porter", $expire); if (isset($_COOKIE["user"])) echo "Welcome " . $_COOKIE["user"] . "!<br>"; else echo "Welcome guest!<br>"; ?>
Output for 4.3.0 - 7.1.0
Welcome guest!<br>