Look at the PHP module BCMath BC Math
It uses strings as numbers with any length and have all common mathematical functions to operate with them.
<?php
$a=bcadd('1234567890123456789012345678901234567890','1000000000000000000000000000000000000000');
echo $a;