Php Find If Array Python Memory Allocation