PHP class for search differences between two strings