Switching to check of PHP version instead of checking if get_magic_quotes_gpc exists. PHP_VERSION_ID < 50400 is ~ 7x faster than function_exists('get_magic_quotes_gpc')