PHP - Manual: LuaSandbox
2025-10-24
(PECL luasandbox >= 1.0.0)
The LuaSandbox class creates a Lua environment and allows for execution of Lua code.
LuaSandbox::SAMPLESUsed with LuaSandbox::getProfilerFunctionReport() to return timings in samples.
LuaSandbox::SECONDSUsed with LuaSandbox::getProfilerFunctionReport() to return timings in seconds.
LuaSandbox::PERCENTUsed with LuaSandbox::getProfilerFunctionReport() to return timings in percentages of the total.