I usually added epel repo then install php 5.3 like this

Code: 
rpm -Uvh *epel repo distribution*

yum -y install php53 php53-cli php53-etc
done

epel repo can be picked up from this page

http://fedoraproject.org/wiki/EPEL

check ur centos version.

good luck