3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_SESSION["referer"] = ''; $_SERVER["HTTP_REFERER"] = 'ficken'; $a = !empty($_SESSION["referer"]) ? $_SESSION["referer"] : (!empty($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ''); print $a;
Output for 4.3.0 - 7.1.0
ficken