Different algorithms and micro libs / PHP