Phosphorus-carbide (CP x ) thin solid films have been deposited by unbalanced reactive magnetron sputtering from a compound C-P target and investigated by transmission electron microscopy, X-ray photoelectron spectroscopy, scanning electron microscopy, elastic recoil detection analysis, Raman scattering spectroscopy, nanoindentation, and four-point electrical probe techniques. CP x films with x=0.1 deposited at 300°C exhibit a structure with elements of short-range ordering in the form of curved and inter-locked fullerene-like fragments. The films have a hardness of 34.4GPa, elastic recovery of 72% and surface roughness of 0.5nm. Higher deposition temperatures yield CP x films with an increasingly amorphous structure, and reduced hardness.