<?php
$input = "+79164788880" ;
$check = '!((\\+7)|8)?(\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9]!ui' ;
echo "Верно\n " ;
} else {
echo "Ошибка\n " ;
}
PD9waHAKCgplcnJvcl9yZXBvcnRpbmcoLTEpOwoKJGlucHV0ID0gIis3OTE2NDc4ODg4MCI7CiRjaGVjayA9ICchKChcXCs3KXw4KT8oXFxXXtCwLdGPKT9bMC05XShcXFde0LAt0Y8pP1swLTldKFxcV17QsC3Rjyk/WzAtOV0oXFxXXtCwLdGPKT9bMC05XShcXFde0LAt0Y8pP1swLTldKFxcV17QsC3Rjyk/WzAtOV0oXFxXXtCwLdGPKT9bMC05XShcXFde0LAt0Y8pP1swLTldKFxcV17QsC3Rjyk/WzAtOV0oXFxXXtCwLdGPKT9bMC05XSF1aSc7CmlmKHByZWdfbWF0Y2goJHJlZ3hwLCAkaW5wdXQpKXsKCWVjaG8gItCS0LXRgNC90L5cbiI7Cn1lbHNlewoJZWNobyLQntGI0LjQsdC60LBcbiI7Cn0=