3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SESSION["referer"] = ''; $_SERVER["HTTP_REFERER"] = 'ficken' $b = !empty($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : '' $a = !empty($_SESSION["referer"]) ? $_SESSION["referer"] : $b; print $a;
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '$b' (T_VARIABLE) in /in/oKkk6 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/oKkk6 on line 6
Process exited with code 255.

preferences:
197.39 ms | 940 KiB | 61 Q