hex2bin is a built-in function in PHP 5.4