In 2011, at least a quarter of the city's fires were in homes that did not have working smoke detectors, fire officials said.
Nationally, two-thirds of fire deaths happen in homes without properly functioning smoke detectors, according to the National Fire Protection Association. The most common reasons smoke detectors fail are missing and dead batteries.
The city's organization of small landlords, HAPCO, enthusiastically endorsed the bill.
The 10-year smoke detectors are tamperproof and cost between $18 and $20 - about $5 more than traditional smoke detectors, said Tom Sri, government affairs manager for smoke detector-maker Kidde Safety.
In earlier testimony, he said residents would save between $40 and $60 on batteries over the alarm's decadelong life span.
Apartments and one- and two-family units built after 1988 are required to have hardwired smoke detectors and are not affected by the fire code changes.
Majority Leader Curtis Jones Jr. was the primary sponsor of bill to update the fire code. He noted this year that Philadelphia has a tradition of checking batteries when clocks are reset in the spring and fall.
"I think a 10-year battery makes that obsolete and that we can just kind of rest assured, at least for a decade, that these alarms are operating," he said.
Contact Troy Graham at 215-854-2730 or firstname.lastname@example.org, or follow on Twitter @troyjgraham.