please use functions `max()` and `min()` lowercase as described in PHP docs