Do the two sentences mean the same?
The sentence, "They have been friends" is using the Present Perfect, and is 'incomplete'. It leaves the reader puzzled by the use of that tense. It is as if you were going to say,
"They have been friends for over 5 years./since they were at school together."
What does the first sentence mean to you; and the second?
Interested in Language