3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_domain_tld = 'iran.co.ir'; preg_match("/[a-z0-9\-]{1,63}\.[a-z\.]{2,6}$/", parse_url($_url_string, PHP_URL_HOST), $_domain_tld); echo $_domain_tld[0];
Output for 5.3.20 - 7.2.0
Notice: Undefined variable: _url_string in /in/IqVW1 on line 4 Notice: Undefined offset: 0 in /in/IqVW1 on line 5