<?php

error_reporting(-1);

$correctNumbers = [ 
  '88005553535',  '+74951234567', '8-495-1-234-567', 
  ' 8 (8122) 56-56-56', '8-911-1234567', '8 (911) 12 345 67', 
  '8-911 12 345 67', '8 (911) - 123 - 45 - 67', '+ 7 999 123 4567', 
  '8 ( 999 ) 1234567', '8 999 123 4567'
];

foreach ($correctNumbers as $check) {
	if (preg_match("/^(8|7|\+7)[\s\-]?\(?\d{3,4}\)?[\s\-]?\d[\s\-]?\d[\s\-]?\d[\s\-]?\d[\s\-]?\d[\s\-]?\d[\s\-]?\d?$/", $check, $matches)) {
		echo "Номер $matches[0] введен правильно\n";
	}
}