U.S. West Texas Intermediate (WTI) crude futures
International benchmark Brent crude futures
During the session, WTI hit the highest since June 2015 while Brent touched its peak since May 2015.
After settlement, energy industry group the American Petroleum Institute said U.S. oil inventories fell by 5 million barrels in the week to Dec. 29. The U.S. Energy Department was scheduled to report official figures on oil inventories on Thursday.
The API said distillate stocks rose by 4.3 million barrels, more than expected. After the data, U.S. heating oil futures pared gains sharply. Heating oil had settled higher on the back of the cold weather hitting a large swathe of the United States.
Heating oil futures
Iran's elite Revolutionary Guards have deployed forces to three provinces to put down anti-government unrest, their commander said on Wednesday. Six days of protests have left 21 people dead.
"While the Iran tensions are certainly a factor, the slew of remarkably strong economic data today is also forcing the rally," said John Kilduff, partner at Again Capital LLC in New York.
Germany's unemployment rate hit a record low in December, underpinning a broad-based economic upswing. U.S. factory activity increased more than expected in December, a further sign of strong economic momentum.
Manufacturing and construction reports also fuelled expectations for a robust U.S. economy in 2018.
Ole Hansen, head of commodity strategy at Denmark's Saxo Bank, warned that "multiple but temporary supply disruptions" like the North Sea Forties and Libyan pipeline outages (and) protests across Iran ... helped create a record speculative long bet."
With pipeline outages resolved and protests in Iran showing no signs of affecting its oil production yet, Hansen said prices could fall in early 2018, especially with rising U.S. output.
"It is only a matter of time before the 10 million barrel per day (bpd) (U.S.) production target will be reached," Hansen said.
Supplies were healthy. U.S. oil production
(Additional reporting by Henning Gloystein and Oleg Vukmanovic; Editing by David Gregorio and Lisa Shumaker)
By Devika Krishna Kumar and David Gaffen