<?php
$number = "8-911)-7989599";
$test = "/8-?\\(?[0-9]{3}\\)?-?[0-9]{3}-?[0-9]{2}-?[0-9]{2}/u";
echo "Номер $number - правильный";
} else
{
echo "Номер $number - неверный";
};
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCiRudW1iZXIgPSAiOC05MTEpLTc5ODk1OTkiOwokdGVzdCA9ICIvOC0/XFwoP1swLTldezN9XFwpPy0/WzAtOV17M30tP1swLTldezJ9LT9bMC05XXsyfS91IjsKaWYgKHByZWdfbWF0Y2goJHRlc3QsICRudW1iZXIpKSB7CgllY2hvICLQndC+0LzQtdGAICRudW1iZXIgLSDQv9GA0LDQstC40LvRjNC90YvQuSI7Cn0gZWxzZQp7CgllY2hvICLQndC+0LzQtdGAICRudW1iZXIgLSDQvdC10LLQtdGA0L3Ri9C5IjsKfTsK