3v4l.org

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

preferences:
100.28 ms | 1970 KiB | 5 Q