3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_tld() { $host = explode( ':', 'refer-wordpress-com-staging.go-vip.co' ); $domain_list = explode( '.', $host[0] ); return ( count( $domain_list ) > 1 ) ? implode( '.', array_slice( $domain_list, - 2 ) ) : $host[0]; } echo get_tld();
Output for 7.3.0rc3
go-vip.co