Php Find Index In Array Python Memory