Mark Sanchez is staying in green.

According to reports, the Eagles and Sanchez have agreed to terms on a contract.

Ian Rapoport first reported the agreement.

A deal was reached once Sanchez passed a physical, the Eagles doctors also signed off on an injured shoulder that raised red flags.

The Cleveland Browns were also said to be in the mix with their new head coach Mike Pettine being familiar with Sanchez with his time spent as Jets defensive coordinator.

With the Eagles signing Sanchez they will have a full house of former Pac-10 quarterbacks in Foles coming from Arizona while both Sanchez and Matt Barkley coming from USC.

Sanchez, 27, endured a roller coaster type career with the Jets making two consecutive AFC Championship games, multiple fourth quarter comebacks, but also throwing costly interceptions and a Thanksgiving night ‘butt fumble’ against the Patriots that will live in Jets infamy.

A change of scenery, however, might do him good. He'll be working under Chip Kelly, Pat Schurmur and new quarterbacks coach Bill Musgrave who has worked with Falcons QB Matt Ryan in the past.