Think you can beat it under PHP 5.4 ?

$extension = strtolower(array_pop(explode('.', $filename)));