Pi is a project mainly written in PHP, it's free.
Various ways to calculate Pi number with scalable accuracy