← All docs

gmp_powm()

Modular exponentiation.

gmp_powm()

function gmp_powm(object|string|int $num, object|string|int $exponent, object|string|int $modulus): object

Modular exponentiation.

Parameters:

  • $num (object|string|int)
  • $exponent (object|string|int)
  • $modulus (object|string|int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_powm is implemented in the compiler, see the internals page.