The research by industry body Tech Nation and data company Dealroom also indicated that the UK has overtaken the US for the amount of investment per capita.
It was hailed as a sign of the confidence overseas investors have in UK tech.
The weakness of the pound is also likely to have made the sector a more attractive destination.
The investment figure was 43% higher than the $4.7bn for the same period last year – but about 50% higher in sterling terms as the dollar has strengthened against the pound.
The $4.7bn sum buys just over £3.8bn today compared to £3.6bn a year ago.
Funding growth was driven by US and Asian investors pumping $3.7bn into UK firms, making up 55% of all the investment.
The report said that since 2013, the UK tech sector has attracted twice as much funding as Germany from US and Asian investors, and six times as much as France.
Renewable energy company Ovo, which secured major Japanese backing, and takeaway business Deliveroo – which won funding from Amazon – were among the main drivers of the latest increase.
Nicky Morgan, secretary of state for Digital, Culture, Media and Sport, said: “These fantastic figures show the confidence overseas investors have in UK tech with investment flows from the US and Asia at an all-time high.
“We have a longstanding reputation for innovation and the statistics endorse our reputation as one of the best places in the world to start and grow a digital business.”
Eileen Burbridge, chair of Tech Nation, said: “Investment in the UK tech sector has been steadily rising for years and as these latest figures demonstrate, the momentum is increasing.”