The fundamental plane of early-type galaxies in different environments