3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url1 = "www.viber.ge"; $url2 = "viber.ge"; If(strlen($url1) > strlen($url2)){ If(str_replace($url2,"",$url1) == "www."){ Echo "same domain"; }Else{ Echo "not same"; } }Else{ If(str_replace($url1,"",$url2) == "www."){ Echo "same domain"; }Else{ Echo "not same"; } }

preferences:
24.27 ms | 404 KiB | 5 Q