Question: why did hoffman kill jill?
Answer: Jill gave Hoffman the test, but didn't give him the options to survive that she was supposed, because she wanted to kill Hoffman to end Kramer's work once and for all (2007's Saw VI). Against all odds, Hoffman found a way to get out of the trap, despite a massive injury he sustained in the process.