Free for EU citizens. For people from the US there is a small charge if you move here https://www.gov.uk/healthcare-immigration-application/how-mu...
It doesn't cover tourists anymore in theory. They'd treat and then bill you but you could probably go home and not pay.