Philosophy is probably a way for human beings to know nature, so it is divided into subjective and objective; Science is a repeatable objective law, so philosophy includes science.
Einstein's theory of relativity is actually between philosophy and science.
The method of subjective understanding of the world has been abandoned by most people, because they usually only look at problems from a personal point of view. If others don't know the point of view of the discussant, they may not be able to reach a consistent conclusion. However, if people consider opinions and discuss them objectively, it will become science.
This definition of philosophy is relatively clear, which basically adapts to the following discussion of philosophy, both historically and theoretically.