The 25-year-old right-hander set career bests last year when he was a first-time All-Star, going 17-6 with a 2.37 ERA. He would have been eligible for free agency after the 2021 season.

Under a deal announced Wednesday, Nola gets a $2 million signing bonus, $4 million this year, $8 million in 2020, $11.75 million in 2021 and $15 million in 2022. Philadelphia has a $16 million team option for 2023 with a $4.25 million buyout.

Eligible for arbitration for the first time, he had asked for a raise from $573,000 to $6.75 million. The Phillies had offered $4.5 million.

Among the more than 175 players who were eligible for arbitration this year, Nola is the first to get a deal of more than one guaranteed season. Arizona left-hander T.J. MacFarland and Milwaukee catcher Manny Pina agreed to contracts that included 2020 club options.