3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $referer = "https://kovervdom.ru/personal/order/make/ <https://kovervdom.ru/personal/order/make/>"; $arReferer = parse_url($referer); $http_host = "kovervdom.ru <http://kovervdom.ru/>"; $arHost = explode(":", $http_host); $http_host = $arHost[0]; echo $http_host; print_r($arReferer) ; if($arReferer["host"] !== $http_host){ echo 1; }
based on TEnlZ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
kovervdom.ru <httpArray ( [scheme] => https [host] => kovervdom.ru [path] => /personal/order/make/ <https://kovervdom.ru/personal/order/make/> ) 1