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"; } }
Output for git.master, git.master_jit, rfc.property-hooks
same domain

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
121.72 ms | 405 KiB | 5 Q