Psychology is a scientific study of mind and behavior. it has come from philosophy and emerged itself as a scientific study, where empirical data(experiments) can be collected using various tests.
Philosophy on the other hand is a broader subject that examines nature of knowledge, logic and basis of existence of life. it is more subjective and depends on inferential analysis for understanding its study topics.