Recursive PHP decoder meant to decode multiple levels of encoding with one execution