I had a plumber install a new water heater the other day, and he said it's up to 2018 (US) code, but I've been wondering if the T&P relief valve discharge pipe really is correct, because it seems to me like discharge pipes shouldn't flow upwards:
The hole in the wall that the discharge pipe goes out of is the one used by the original water heater's pipe, and I don't know why they made it so high - I'm guessing because there's not a lot of room in this corner of my garage and they needed the pipe to go above the water heater.