3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data=date("h:i:s a d/m/y"); setcookie("visitCookie",$data,time()+3600*24*30); if(isset($_COOKIE["visitCookie"])) { print "Last visit : $_COOKIE[visitCookie] "; } else { print "Cookie set. You're visiting for first time"; } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Cookie set. You're visiting for first time