3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = $_SERVER['HTTP_HOST']; $salt = "i.am.a.rand0m.str1ng.Of.ChArAcT3r$"; echo $url . "<br />"; echo hash('sha1', $url . $salt);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: Undefined index: HTTP_HOST in /in/Uq3D1 on line 2 <br />d0a8f4985a5b3ba794271036e7433c5f49c27592
Output for 5.1.2 - 5.2.17
Notice: Undefined index: HTTP_HOST in /in/Uq3D1 on line 2 <br />d0a8f4985a5b3ba794271036e7433c5f49c27592
Output for 5.0.0 - 5.1.1
Notice: Undefined index: HTTP_HOST in /in/Uq3D1 on line 2 <br /> Fatal error: Call to undefined function hash() in /in/Uq3D1 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined index: HTTP_HOST in /in/Uq3D1 on line 2 <br /> Fatal error: Call to undefined function: hash() in /in/Uq3D1 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined index: HTTP_HOST in /in/Uq3D1 on line 2 <br /> Fatal error: Call to undefined function: hash() in /in/Uq3D1 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined index: HTTP_HOST in /in/Uq3D1 on line 2 <br /> Fatal error: Call to undefined function: hash() in /in/Uq3D1 on line 5