3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $host = 'htp://www.casino.vbet.com'; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); echo "domain name is: {$matches[0]}\n";
Output for 4.3.0 - 7.1.0
domain name is: vbet.com