これで、十分だろPHP5専用だが

<?php
$p = new Perl();
$p->eval('
$_ = \'a1bb2ccc3dd4e5\';
s/\d/2 * $&/eg;
print;
');
?>