5. The sum of all roots of the equation $x^{2}-2|x+4|-27=0$ is

保留了源文本的换行和格式。
$5.6-2 \sqrt{5}$.
It is clear that $x=-4$ is not a root of the equation.
When $x>-4$, the root of the equation $x^{2}-2 x-35=0$ is $x=7$;
When $x<-4$, the root of the equation $x^{2}+2 x-19=0$ is $x=$ $-1-2 \sqrt{5}$.
Therefore, there are two roots 7 and $-1-2 \sqrt{5}$.