hex2bin() not supported in php version < 5.4