<?php

class MathHelper
{
	public static function getLeastCommonMultiple($a, $b) {
		if (bccomp($a, $b) === 0) return $a;
		list($max, $min) = (bccomp($a, $b) == -1) ? [$b, $a] : [$a, $b] ;

		$lcm = $max;
		for ($i = 1; bcmod($lcm, $min) != 0; $i++) { 
			$lcm = bcmul($max, $i);
		}

		return $lcm;
	}
}

echo MathHelper::getLeastCommonMultiple('2','100000000000000000000000000000');