<?php
$text = "А роза упала на лапу Азора";
$result = "палиндром";
$halfLength = floor($length/2);
for ($i = 0; $i <= $halfLength; $i++){
$result = "не палиндром";
break;
}
}
echo "Результат: {$result}\n";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAi0JAg0YDQvtC30LAg0YPQv9Cw0LvQsCDQvdCwINC70LDQv9GDINCQ0LfQvtGA0LAiOwokcmVzdWx0ID0gItC/0LDQu9C40L3QtNGA0L7QvCI7CgokdGV4dCA9IHN0cl9yZXBsYWNlKCIgIiwiIiwkdGV4dCk7CiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CgokbGVuZ3RoID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoLzIpOwoKZm9yICgkaSA9IDA7ICRpIDw9ICRoYWxmTGVuZ3RoOyAkaSsrKXsKCWlmKG1iX3N1YnN0cigkdGV4dCwgJGksIDEpICE9IG1iX3N1YnN0cigkdGV4dCwgLSRpLTEsIDEpKXsKCQkkcmVzdWx0ID0gItC90LUg0L/QsNC70LjQvdC00YDQvtC8IjsKCQlicmVhazsKCX0KfQoKZWNobyAi0KDQtdC30YPQu9GM0YLQsNGCOiB7JHJlc3VsdH1cbiI7