<?php
//проверка на палиндром
$text = "12133454321";
$answer = 'палиндром';
for ($i=0; $i<$length; $i++) {
echo "итерация $i\n";
echo "$s - $f\n";
if ($s != $f) {
$answer = 'непалиндром';
break;
}
}
echo $answer;
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7Ci8v0L/RgNC+0LLQtdGA0LrQsCDQvdCwINC/0LDQu9C40L3QtNGA0L7QvAoKJHRleHQgPSAiMTIxMzM0NTQzMjEiOwokdGV4dCA9IG1iX3N0cnRvbG93ZXIoJHRleHQpOwokdGV4dCA9IHN0cl9yZXBsYWNlKCcgJywgJycsICR0ZXh0KTsKCiRsZW5ndGggPSBmbG9vcihtYl9zdHJsZW4oJHRleHQpLzIpOwoKJGFuc3dlciA9ICfQv9Cw0LvQuNC90LTRgNC+0LwnOwoKZm9yICgkaT0wOyAkaTwkbGVuZ3RoOyAkaSsrKSB7CgllY2hvICLQuNGC0LXRgNCw0YbQuNGPICRpXG4iOwoJJHMgPSBtYl9zdWJzdHIoJHRleHQsICRpLCAxKTsKCSRmID0gbWJfc3Vic3RyKCR0ZXh0LCAtJGktMSwgMSk7CgllY2hvICIkcyAtICRmXG4iOwoJaWYgKCRzICE9ICRmKSB7CgkJJGFuc3dlciA9ICfQvdC10L/QsNC70LjQvdC00YDQvtC8JzsKCQlicmVhazsKCX0KfQoKZWNobyAkYW5zd2VyOw==