The Porphyrins 24-Hour Urine test measures the levels of porphyrins, compounds vital for heme synthesis, in urine collected over a 24-hour period. Abnormal porphyrin levels can indicate various conditions, including porphyrias, liver diseases, lead poisoning, and certain infections. Healthcare providers use this test to diagnose porphyrias, assess liver function, and identify exposure to toxins.