The "scarce" bit is the three chapters, which is a tiny portion of the book. So the modifier "scarcely" needs to go directly before the words it modifies.
Philip had read scarcely three chapters.....
Explanation:
If, for example, the situation was that Philip just glanced at the book, you could say "Philip had scarcely looked at the book when he found out...."