Online PHP Function(s){ #Test PHP functions online!; }



Test all PHP Math functions here

abs Returns the absolute value of number.
acos Returns the arc cosine of arg in radians. acos() is the complementary function of cos(), which means that a==cos(acos(a)) for every value of a that is within acos()' range.
acosh acosh — Inverse hyperbolic cosine
asin Returns the arc sine of arg in radians. asin() is the complementary function of sin(), which means that a==sin(asin(a)) for every value of a that is within asin()'s range.
asinh Returns the inverse hyperbolic sine of arg, i.e. the value whose hyperbolic sine is arg.
atan Returns the arc tangent of arg in radians. atan() is the complementary function of tan(), which means that a==tan(atan(a)) for every value of a that is within atan()'s range.
atan2 This function calculates the arc tangent of the two variables x and y. It is similar to calculating the arc tangent of y / x, except that the signs of both arguments are used to determine the quadrant of the result.
atanh Returns the inverse hyperbolic tangent of arg, i.e. the value whose hyperbolic tangent is arg.
ceil Returns the next highest integer value by rounding up value if necessary.
crc32 Calculates the crc32 polynomial of a string
decoct Returns a string containing an octal representation of the given number argument.
deg2rad Converts the number in degrees to the radian equivalent
doubleval doubleval() became an alias of floatval(). Before this time, only doubleval() existed.
exp Calculates the exponent of e
expm1 Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero
floatval Get float value of a variable
floor Returns the next lowest integer value by rounding down value if necessary.
fmod Returns the floating point remainder (modulo) of the division of the arguments
hexdec Returns the decimal equivalent of the hexadecimal number represented by the hex_string argument. hexdec() converts a hexadecimal string to a decimal number.
hypot Calculate the length of the hypotenuse of a right-angle triangle
intval Returns the integer value of var, using the specified base for the conversion (the default is base 10). intval() should not be used on objects, as doing so will emit an E_NOTICE level error and return 1.
is_finite Finds whether a value is a legal finite number
is_infinite Finds whether a value is infinite
is_nan Finds whether a value is not a number
lcg_value Combined linear congruential generator
octdec Returns the decimal equivalent of the octal number represented by the octal_string argument.
pi Get value of pi
pow Returns base raised to the power of exp.
rad2deg Converts the radian number to the equivalent number in degrees
round Rounds a float
sin sin() returns the sine of the arg parameter. The arg parameter is in radians.
sinh Returns the hyperbolic sine of arg, defined as (exp(arg) - exp(-arg))/2.
sqrt Returns the square root of arg.
tan tan() returns the tangent of the arg parameter. The arg parameter is in radians.
tanh Returns the hyperbolic tangent of arg, defined as sinh(arg)/cosh(arg).

      © 2022 | Disclaimer |       PHP versions: 8.0.0, 7.4.13, 7.4.7, 7.4.0, 7.3.25, 7.3.19, 7.3.12, 7.3.5, 7.2.31, 7.2.25, 7.2.18, 7.2.4, 7.1.33, 7.1.29, 7.1.0, 7.0.14, 7.0.5, 7.0.4, 7.0.3, 7.0.2, 7.0.1, 5.6.29, 5.6.20, 5.6.19, 5.6.18, 5.6.17, 5.6.2, 5.5.34, 5.5.33, 5.5.32, 5.5.31, 5.5.18, 5.5.5, 5.5.0.a6, 5.5.0.a.5, 5.5.0.a.2, 5.4.34, 5.4.21, 5.4.13, 5.4.12, 5.4.11, 5.4.10, 5.4.9, 5.4.8, 5.4.7, 5.4.6, 5.4.5, 5.4.4, 5.4.3, 5.4.2, 5.4.1, 5.4.0, 5.3.29, 5.3.27, 5.3.23, 5.3.22, 5.3.21, 5.3.20, 5.3.19, 5.3.18, 5.3.17, 5.3.16, 5.3.15, 5.3.14, 5.3.13, 5.3.12, 5.3.11, 5.3.10, 5.3.2, 5.3.1, 5.3.0, 5.2.17, 5.2.16, 5.1.6, 5.1.5, 5.0.5, 5.0.4, 4.4.9