<?php
$text = "А роза упала на лапу Азора";
$result = "палиндром";
$negativeResult = "не палиндром";
for ($i = 1; $i <= $length; $i ++) {
if ($letter1 = $letter2) {
echo "$letter1 - $letter2 \n";
} else {
echo "$negativeResult";
break;
}
}
echo "$result";
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHQgPSAi0L/QsNC70LjQvdC00YDQvtC8IjsKJG5lZ2F0aXZlUmVzdWx0ID0gItC90LUg0L/QsNC70LjQvdC00YDQvtC8IjsKCiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwoKJGxlbmd0aCA9IGZsb29yKG1iX3N0cmxlbigkdGV4dCkgLyAyKTsKCiRoYWxmVGV4dCA9IG1iX3N1YnN0cigkdGV4dCwgMCwgJGxlbmd0aCk7Cgpmb3IgKCRpID0gMTsgJGkgPD0gJGxlbmd0aDsgJGkgKyspIHsKCSRsZXR0ZXIxID0gbWJfc3Vic3RyKCR0ZXh0LCAwLCAkaSk7CgkkbGV0dGVyMiA9IG1iX3N1YnN0cigkaGFsZlRleHQsIC0kaSk7CgoJaWYgKCRsZXR0ZXIxID0gJGxldHRlcjIpIHsKCQllY2hvICIkbGV0dGVyMSAtICRsZXR0ZXIyIFxuIjsKCgl9IGVsc2UgewoJCWVjaG8gIiRuZWdhdGl2ZVJlc3VsdCI7CgkJYnJlYWs7Cgl9Cgl9CgplY2hvICIkcmVzdWx0IjsK