<?php
$text = "А роза упала на лапу Азора";
$result = 'палиндром';
$halfLength = floor ($length/ 2);
for ($i = 0; $i <= $halfLength; $i++) {
if ($a != $b) {
$result = 'не палиндром';
}
}
echo "Результат: {$result}";
PD9waHAKCmVycm9yX3JlcG9ydGluZyAoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZyAoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHQgPSAn0L/QsNC70LjQvdC00YDQvtC8JzsKCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCIiLCAkdGV4dCk7CiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CgokbGVuZ3RoID0gbWJfc3RybGVuICgkdGV4dCk7CiRoYWxmTGVuZ3RoID0gZmxvb3IgKCRsZW5ndGgvIDIpOwoKZm9yICgkaSA9IDA7ICRpIDw9ICRoYWxmTGVuZ3RoOyAkaSsrKSB7CgkkYSA9IG1iX3N1YnN0cigkdGV4dCwgJGksIDEpOwoJJGIgPSBtYl9zdWJzdHIoJHRleHQsIC0kaS0xLCAxKTsKCWlmICgkYSAhPSAkYikgewoJCSRyZXN1bHQgPSAn0L3QtSDQv9Cw0LvQuNC90LTRgNC+0LwnOwoJfQp9CmVjaG8gItCg0LXQt9GD0LvRjNGC0LDRgjogeyRyZXN1bHR9Ijs=