For example for the pidigits bench:
The PHP version use the GM extension http://shootout.alioth.debian.org/u64q/program.php?test=pidi...
And Ruby do it in pure Ruby http://shootout.alioth.debian.org/u64q/program.php?test=pidi...
So basically it's a C vs Ruby benchmark. Many peoples complained on the forum, take a look.
The Debian shootout is interesting, but don't take it as an absolute truth.