In spoken Chinese, we hardly ever say "例如". However, "比如" is used in both spoken and written Chinese.
"如" and "譬如" are their synonyms and usually used in written Chinese. "譬如" is not used very often, though. That could be because the pronunciation of "譬" is exactly the same as that of '屁'. : )