Intrinsic Functions - chung-leong/qb GitHub Wiki
Frequently used functions are implemented as intrinsics in QB. Intrinsic functions are coded into the QB virtual machine. As such, they are very fast. Some intrinsic functions have no run-time cost at all: count() or sizeof() just returns the variable holding the size of an array. The loop construct for($i = 0; $i < count($array); $i++) is thus quite efficient in PHP+QB, unlike in regular PHP.
Nearly all of PHP’s mathematical functions exist as intrinsics in QB. In addition, intrinsic functions that accept a scalar will typically accept an array as well. If $a is an array holding 16 numbers and you call cos($a), the result is an array holding 16 cosines.