Catalyzes the hydrolysis of acyl-CoAs into free fatty acids and coenzyme A (CoASH), regulating their respective intracellular levels. Catalyzes the hydrolysis of phytanoyl-CoA and pristanoyl-CoA, two methyl-branched fatty acids derived from phytol, that enter the body via the diet.