3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $redirectUrl = "http://google.com"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST'])); $redirectUrl = "http://3v4l.org"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST'])); $redirectUrl = "http://google.com/3val.org"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST']));
Output for 5.3.0 - 7.1.0
Notice: Undefined index: HTTP_HOST in /in/ijCnf on line 4 bool(false) Notice: Undefined index: HTTP_HOST in /in/ijCnf on line 7 bool(false) Notice: Undefined index: HTTP_HOST in /in/ijCnf on line 10 bool(false)
Output for 4.3.0 - 5.2.17
Notice: Undefined index: HTTP_HOST in /in/ijCnf on line 4 bool(false) Notice: Undefined index: HTTP_HOST in /in/ijCnf on line 7 bool(false) Notice: Undefined index: HTTP_HOST in /in/ijCnf on line 10 bool(false)