I’ve run into enough cases where I want to get the exact equivalent of PHP’s
One snippet I found on the internet, here, had imperfections, and appeared
to be slow. This was probably due to the fact that it did not actually
follow the implementation PHP used. So, I created this.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.