<?php
$text = "А роза упала на лапу Азора";
$result = "палиндром";
$negativeResult = "не палиндром";
for ($i = 0; $i <= $length; $i ++) {
if ($letter1 = $letter2) {
echo "$letter1 - $letter2 \n";
} elseif ($letter1 <> $letter2) {
echo "$negativeResult";
break;
}
}
echo "$result";
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCiR0ZXh0ID0gItCQINGA0L7Qt9CwINGD0L/QsNC70LAg0L3QsCDQu9Cw0L/RgyDQkNC30L7RgNCwIjsKJHJlc3VsdCA9ICLQv9Cw0LvQuNC90LTRgNC+0LwiOwokbmVnYXRpdmVSZXN1bHQgPSAi0L3QtSDQv9Cw0LvQuNC90LTRgNC+0LwiOwoKJHRleHQgPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKJHRleHQgPSBzdHJfcmVwbGFjZSgiICIsICIiLCAkdGV4dCk7CgokbGVuZ3RoID0gZmxvb3IobWJfc3RybGVuKCR0ZXh0KSAvIDIpOwoKZm9yICgkaSA9IDA7ICRpIDw9ICRsZW5ndGg7ICRpICsrKSB7CgkkbGV0dGVyMSA9IG1iX3N1YnN0cigkdGV4dCwgMCwgJGkpOwoJJGxldHRlcjIgPSBtYl9zdWJzdHIoJHRleHQsIC0kaSk7CgoJaWYgKCRsZXR0ZXIxID0gJGxldHRlcjIpIHsKCQllY2hvICIkbGV0dGVyMSAtICRsZXR0ZXIyIFxuIjsKCgl9IGVsc2VpZiAoJGxldHRlcjEgPD4gJGxldHRlcjIpIHsKCQllY2hvICIkbmVnYXRpdmVSZXN1bHQiOwoJCWJyZWFrOwoJfQoJfQoKZWNobyAiJHJlc3VsdCI7Cg==