Ed Harris has replaced Dennis Hopper in Paramount Pictures’ “The Truman Show” after the filmmakers and the actor split over “creative differences,” sources said.

The project, produced by Scott Rudin, has almost finished principal photography. The role that Harris has stepped into — a crucial one, since he’s the villain — is nevertheless only about a 10-day part. Hopper’s exit came about a week ago.

“The Truman Show,” directed by Peter Weir, is a project that Carrey wanted to do to evolve his acting talent. The actor, who gets paid $20 million per picture, agreed to do the project for $12 million.

Harris was last seen in Castle Rock Entertainment’s “Absolute Power” and last summer’s action blockbuster “The Rock.” He is repped by CAA’s Todd Smith.