Question for PA folks: Thru-the-fender exhaust legal?

I've seen 1 or 2 cars with fenderwell headers, but I'm not sure if its definately legal or not. But they had to get it inspected somehow I would think