Mark and Luke have Jesus dying alone, whereas John has the mother of Jesus and the beloved disciple at the foot of the cross, and Jesus has a conversation with them.
LK 23:49 "All those who knew Jesus personally, including the women who had followed him from Galilee, stood at a distance to watch."
JH 19:25 "Standing close to Jesus' cross were his mother,...Jesus saw his mother and the disciple he loved standing there, so he said to his mother...."