<?php
// your code goes here
$text = "+7(919)-122-88-99";
$result = null;
$userInputRegexp = '/^(8|[+]7)[\\(\\)0-9-]{10,40}/u';
$filterRegexp = '/[\\(\\)-]/u';
$changeFirstNumberRegexp = '/[+]7/u';
echo $result;
} else
echo "Wrong number!";
PD9waHAKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCiR0ZXh0ID0gIis3KDkxOSktMTIyLTg4LTk5IjsKJHJlc3VsdCA9IG51bGw7CgokdXNlcklucHV0UmVnZXhwID0gJy9eKDh8WytdNylbXFwoXFwpMC05LV17MTAsNDB9L3UnOwokZmlsdGVyUmVnZXhwID0gJy9bXFwoXFwpLV0vdSc7CiRjaGFuZ2VGaXJzdE51bWJlclJlZ2V4cCA9ICcvWytdNy91JzsKCmlmIChwcmVnX21hdGNoKCR1c2VySW5wdXRSZWdleHAsJHRleHQpKXsKCSRyZXN1bHQgPSBwcmVnX3JlcGxhY2UoJGZpbHRlclJlZ2V4cCwiIixwcmVnX3JlcGxhY2UoJGNoYW5nZUZpcnN0TnVtYmVyUmVnZXhwLCI4IiwkdGV4dCkpOwkKCWVjaG8gJHJlc3VsdDsKfSBlbHNlCgllY2hvICJXcm9uZyBudW1iZXIhIjs=