The drug stays for 7–10 days in a dog's system. The effects of the drug cease within a week, but it might take a longer time for animals who have liver or kidney disease.
Furthermore, always consult a vet before you give any drug, especially phenobarbital, to your dog, as there may be chances of overdosing.