Legally compliant, yes. Very good, no. Same goes for H13, H14, and a few similar designs seen only in the Japanese market. The high beam basically is a "copy" of the low beam, just shifted up and to the left (or up and to the right, in the case of headlamps for left traffic). It is not possible to optimize both beams, and it's very difficult to optimize even the low beam individually because of glare created by reflections off the nearby high beam filament.
H4 (HB2, 9003) doesn't have this problem, because the optics for it have separate zones dedicated to the low beam and to the high beam, but this bulb has a severe inefficiency on low beam because only about half the total reflector/lens area can be used to collect and focus light for the low beam, and it is a very old light source with a lot of potential for imprecise base-to-lamp fit compared to more modern designs. The new, forthcoming H19 is an efficiency improvement over the H4, but still has the old-type base.