A legacy/patched version of arc2, php52/53 compatible, circa 2008-08-04. Provided here with kind permission from Benjamin Nowack (https://github.com/semsol)