You can get from any gate to any other gate in PHX with a 10 minute leisurely walk (some on moving sidewalks if going between A and B gates). Should not be a problem IF your flight from MIA is on time. You're basically betting on that flight being on time.