Oil hit new highs for 2015 on Wednesday, bolstered by the first U.S. crude stockpile drop since January, before paring gains as investors and traders moved to take profits on a multi-week rally.

The dollar's recent tumble also fed the run-up in oil and other commodities, as those raw materials became more affordable for holders of the euro and other currencies.