<?php
$title = 0;
$squad = 0;
$level = 0;
function has_same_value($array, $value) {
return array_reduce($array, function ($carry, $item) use ($value) { return $carry && ($item == $value);
}, true);
}
$resultado = has_same_value([$title, $squad, $level], 0);
PD9waHAKCiR0aXRsZSA9IDA7CiRzcXVhZCA9IDA7CiRsZXZlbCA9IDA7CgpmdW5jdGlvbiBoYXNfc2FtZV92YWx1ZSgkYXJyYXksICR2YWx1ZSkgewogICAgcmV0dXJuIGFycmF5X3JlZHVjZSgkYXJyYXksIGZ1bmN0aW9uICgkY2FycnksICRpdGVtKSB1c2UgKCR2YWx1ZSkgewogICAgICAgIHJldHVybiAkY2FycnkgJiYgKCRpdGVtID09ICR2YWx1ZSk7CiAgICB9LCB0cnVlKTsKfQoKJHJlc3VsdGFkbyA9IGhhc19zYW1lX3ZhbHVlKFskdGl0bGUsICRzcXVhZCwgJGxldmVsXSwgMCk7Cgp2YXJfZHVtcCggJHJlc3VsdGFkbyApOw==