Also assuming that these journeys are on one ticket with no need to collect luggage and recheck in at LHR. If separate tickets then you do need to adhere to requirements and restrictions on entering the UK. And budget for several hours delay to enter the UK border.