Php Find Max Of Array Python Memory