<?php
// error reporting (-1);
$regexp = "/^8 ( [0-9] {3}) - [0-9] {7}/iu";
$i = '8(911)-506 56 56';
echo "Правильно\n";
} else {
echo "Неправильно\n";
}
PD9waHAKCi8vIGVycm9yIHJlcG9ydGluZyAoLTEpOwoKJHJlZ2V4cCA9ICIvXjggKCBbMC05XSB7M30pIC0gWzAtOV0gezd9L2l1IjsKJGkgPSAnOCg5MTEpLTUwNiA1NiA1Nic7CmlmIChwcmVnX21hdGNoKCRyZWdleHAsJGkpKSB7CgllY2hvICLQn9GA0LDQstC40LvRjNC90L5cbiI7Cn0gZWxzZSB7CgllY2hvICLQndC10L/RgNCw0LLQuNC70YzQvdC+XG4iOwp9