In this paper, we consider the Cauchy problem for an inviscid compressible Oldroyd-B model in three dimensions. The global well posedness of strong solutions and the associated time-decay estimates in Sobolev spaces are established near an equilibrium state. The vanishing of viscosity is the main challenge compared with [47] where the viscosity coefficients are included and the decay rates for the highest-order derivatives of the solutions seem not optimal. One of the main objectives of this paper is to develop some new dissipative estimates such that the smallness of the initial data and decay rates are independent of the viscosity. Moreover, we prove that the decay rates for the highest-order derivatives of the solutions are optimal, which is of independent interest. Our proof relies on Fourier theory and delicate energy method.