Hogwarts Legacy for last-gen consoles is surprisingly well optimized.
So... recently a guy from Brazil managed to test the old-gen versions of Hogwarts Legacy on Xbox One S and PS4 Slim:
He basically said this:
PS4 Base:
* FPS Lock : Keeps a locked 30fps with almost no drops.
* Unlock FPS : Has an average of 46fps and can go higher in closed areas.
Xbox One :
* FPS Lock : Has some drops to 26fps but maintains 30fps most of the time.
* FPS Unlock : Has an average of 34fps and can go higher in closed areas.
[EDIT]
El Analista de Bits recently posted a video of the game running on PS4, the game has some downgrades like reduced draw-distance and reduced shadow quality but the visuals remain remarkably close to the PS5 version.
Base PS4 runs the game at 900p and PS4 Pro at 1080p. (For comparison, the Xbox Series S version also runs at 900p)
I will say, I'm quite impressed, I really expected the game to run a lot worse, it's almost impressive to see this on a 10 year old console, the delay of months to polish the versions for the weaker consoles really paid off , it makes me hopeful and curious about the Switch version.