The invention relates to compounds of formula (I), compositions containing the same, and methods for treating and/or diminishing pain in a subject in need thereof. The compounds of formula (I) are effective for treating opioid-induced tachyphylaxis and opioid-induced hyperalgesia.