An interesting side by side comparison of a variety of functions and features in PHP, Perl, Python & Ruby: http://hyperpolyglot.org/scripting

Edit: You can also find other language comparisons like Pascal and Ada among others: http://hyperpolyglot.org/