Perth has escaped the worst of Western Australia's heat on Friday as temperatures in inland regions soared beyond 47°C.