3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'htp://www.casino.vbet.com'; preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); echo "domain name is: {$matches[0]}\n";

preferences:
31.87 ms | 402 KiB | 5 Q