Rename all .php3 files to .php:

for f in *.php3; do mv "$f" "`basename "$f" .php3`.php"; done;