3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed_hosts = ['wowwiki.com', 'wikia.com', 'falloutvault.com']; $host = false; // parse_url($url, PHP_URL_HOST) var_dump(in_array($host, $allowed_hosts));

preferences:
63.47 ms | 405 KiB | 5 Q