Correct position of “only”
Which of the following sentences are correct?
- I have worked with only Mr. X.
- I have worked only with Mr. X.
- I have only worked with Mr. X.
- I have worked with Mr. X only.
Are all of the above correct? If so, how they differ in meaning?