<?php
$input = <<<EOF
ты дурак
ты дypak
ты д у р а к
ты д y p a k
Ты ДуРаК
Ты ДyPaK
EOF;
$pattern = "/[dд] *[уyu] *[рrp] *[aа] *[kк]/ui";
echo $input;
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokaW5wdXQgPSA8PDxFT0YK0YLRiyDQtNGD0YDQsNC6CtGC0Ysg0LR5cGFrCtGC0Ysg0LQg0YMg0YAgINCwINC6CtGC0Ysg0LQgeSAgcCBhIGsK0KLRiyDQlNGD0KDQsNCaCtCi0Ysg0JR5UGFLCkVPRjsKJHBhdHRlcm4gPSAiL1tk0LRdICpb0YN5dV0gKlvRgHJwXSAqW2HQsF0gKltr0LpdL3VpIjsKJGlucHV0ID0gcHJlZ19yZXBsYWNlKCRwYXR0ZXJuLCAi0YXQvtGA0L7RiNC40Lkg0YfQtdC70L7QstC10LoiLCAkaW5wdXQpOwplY2hvICRpbnB1dDs=