3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_url_string = 'iran.co.ir'; preg_match("/[a-z0-9\-]{1,63}\.[a-z\.]{2,6}$/", parse_url($_url_string, PHP_URL_HOST), $_domain_tld); var_dump($_domain_tld);
based on YWW9P
Output for 5.5.0 - 5.6.30, hhvm-3.10.1, 7.0.0 - 7.2.0
array(0) { }
Output for hhvm-3.11.1 - 3.17.3
Warning: preg_match() expects parameter 2 to be string, null given in /in/BrS0m on line 4 NULL