In the climactic scene of “Toy Story 3,” Woody, Buzz Lightyear and the rest of the crew narrowly escape death when a remote-controlled claw lifts them from an incinerator just before flames engulf them .

Now Burger King is set to enact an alternative ending — collecting, sorting and chopping up hundreds of thousands of tiny toys , before melting them into hot plastic at a factory in northern England.

To anyone with childhood memories of beloved action figures, this may sound like an act of carnage — more Dante’s “Inferno” than Disney Pixar. But the “meltdown” is intended as a grand environmental gesture. Faced with growing public concern over the proliferation of single-use plastic, Burger King has vowed to stop giving away plastic toys with children’s meals in Britain and has encouraged customers to deposit old toys in collection bins at the chain’s locations there.

In December, the recycling firm Pentatonic will melt those orphaned action figures, then turn the raw material into playground equipment and reusable tray tables. Burger King plans to eliminate non-biodegradable toys from all its restaurants worldwide by 2025.