It is part of the one the front wheel drive half shafts. The splined part goes into the transmission/differential. The other side looks like maybe rest of the shaft is broken/cut off, but can't see the whole thing in your photo.
A forum community dedicated to Mazda 3 and all Mazda vehicle owners and enthusiasts. Come join the discussion about MazdaSpeed performance, modifications, classifieds, troubleshooting, maintenance, and more!