I'll begin with Mark's Gospel, as that was the first New Testament Gospel to be written and is considered by scholars to be the primary source used by the authors of the other gospels, either directly (Matthew, Luke) or indirectly (John).
Mark 15:40 says that Mary Magdalene, Mary the mother of James and Joses, and Salome stood watching from afar off:
There were also women looking on afar off: among whom was Mary Magdalene, and Mary the mother of James the less and of Joses, and Salome;
Mark 15:39 tells us that there was a centurion present, with his soldiers, and the chief priests and scribes who mocked Jesus (15:31). Simon the Cyrenian was probably there (15:21), but otherwise there seems only to have been a hostile crowd. As one would expect from a person in his position, Pontius Pilate did not go to the crucifixion, but "delivered Jesus" to be crucified (15:15).
Matthew 27:55-56 says that many women looked from afar of, including Mary Magdalene, Mary the mother of James and Joses, and the mother of Zebedee's children
many women were there beholding afar off, which followed Jesus from Galilee, ministering unto him: Among which was Mary Magdalene, and Mary the mother of James and Joses, and the mother of Zebedee's children.
As with Mark, there was a centurion present (27:54) and the chief priests who mocked Jesus (27:41-42).
Luke 23:49 plainly tells us that all of Jesus' acquaintances, including the women, stood watching afar off.
And all his acquaintance, and the women that followed him from Galilee, stood afar off, beholding these things.
There were the centurion and the "rulers," or high priests.
John chapter 19 very much disagrees with the synoptic gospels, perhaps for theological reasons.
John 19:19 now tells us that Pontius Pilate was present, because he felt that a great wrong was being done:
And Pilate wrote a title, and put it on the cross. And the writing was, JESUS OF NAZARETH THE KING OF THE JEWS.
In this gospel, those of,Jesus' acquaintance and the women were not all standing afar off, instead Mary Magdalene, Mary the mother of Jesus and another Mary were at the foot of the cross with one of the disciples (19:25-26):
Now there stood by the cross of Jesus his mother, and his mother's sister, Mary the wife of Cleophas, and Mary Magdalene. When Jesus therefore saw his mother, and the disciple standing by, whom he loved, he saith unto his mother, Woman, behold thy son!
The statement, "Father, forgive them; for they know not what they do" is only found in Luke's Gospel, at Luke 23:34. There is no likelihood of Luke have met any eyewitness to the crucifixion, and even conservative theologians would agree that he was not present at the crucifixion, and . Luke was a gentile companion of Paul in the 50s of the first century and would be unlikely to have been in Jerusalem over twenty years earlier. Raymond E. Brown says in An Introduction to the New Testament,page 259, that some manuscripts of Luke lack Jesus' words of forgiveness, possibly meaning that these words were added to the Gospel some time after it was written.