<?php
$text = "zalupasszalupa";
$result;
$halfLenght = floor($lenght / 2);
for ($i = 0; $i <= $halfLenght; $i ++) {
echo "$a -- $b \n";
if ($a != $b) {
$result = "Не палиндром";
} else {
$result = "Палиндром";
}
}
echo "{$result}";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAiemFsdXBhc3N6YWx1cGEiOwokcmVzdWx0OwoKJHRleHQgPSBzdHJfcmVwbGFjZSgiICIsICIiLCAkdGV4dCk7CiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CgokbGVuZ2h0ID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGZMZW5naHQgPSBmbG9vcigkbGVuZ2h0IC8gMik7Cgpmb3IgKCRpID0gMDsgJGkgPD0gJGhhbGZMZW5naHQ7ICRpICsrKSB7CgkkYSA9IG1iX3N1YnN0cigkdGV4dCwgJGksIDEpOwoJJGIgPSBtYl9zdWJzdHIoJHRleHQsIC0kaSwgMSk7CgllY2hvICIkYSAtLSAkYiBcbiI7CglpZiAoJGEgIT0gJGIpIHsKCQkkcmVzdWx0ID0gItCd0LUg0L/QsNC70LjQvdC00YDQvtC8IjsKCX0gZWxzZSB7CgkJJHJlc3VsdCA9ICLQn9Cw0LvQuNC90LTRgNC+0LwiOwoJfQp9CmVjaG8gInskcmVzdWx0fSI7