"Time flies like an arrow; fruit flies like a banana" is a humorous saying that is used in linguistics as an example of a garden path sentence or syntactic ambiguity, and in word play as an example of punning, double entendre, and antanaclasis.
== Analysis of the basic ambiguities ==
The point of the example is that the correct parsing of the second sentence, "fruit flies like a banana", is not the one that the reader starts to build, by assuming that "fruit" is a noun (the subject), "flies" is the main verb, and "like" as a preposition. The reader only discovers that the parsing is incorrect...