Context. The properties of protoplanetary discs determine the conditions for planet formation. In addition, planets can already form during the early stages of infall. Aims. We constrain physical quantities such as the mass, radius, lifetime, and gravitational stability of protoplanetary discs by studying their evolution from formation to dispersal. Methods. We perform a population synthesis of protoplanetary discs with a total of 50 000 simulations using a 1D vertically integrated viscous evolution code, studying a parameter space of final stellar mass from 0.05 to 5 M⊙. Each star-and-disc system is set up shortly after the formation of the protostar and fed by infalling material from the parent molecular cloud core. Initial conditions and...