3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hostname = 'http://yandex.ru'; var_dump(preg_match('/.(yandex.ru|yandex.net|yandex.com)$/', $hostname));

preferences:
30.15 ms | 402 KiB | 5 Q