Php Create Multidimensional Array Python Memory