3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domainPart = ' domain.com'; $regexChar = '/^[\x{0100}-\x{017f}]{1,63}$/iu'; preg_match($regexChar, $domainPart, $matches); print_r($matches);

preferences:
50.04 ms | 402 KiB | 5 Q