php8.5
Home/ Manual/ reference / luasandbox/ The LuaSandbox class

The LuaSandbox class

The LuaSandbox class creates a Lua environment and allows for execution of Lua code.

Intro

The LuaSandbox class creates a Lua environment and allows for execution of Lua code.

Class synopsis

class LuaSandbox { }

Predefined Constants

LuaSandbox::SAMPLES

Used with LuaSandbox::getProfilerFunctionReport to return timings in samples.

LuaSandbox::SECONDS

Used with LuaSandbox::getProfilerFunctionReport to return timings in seconds.

LuaSandbox::PERCENT

Used with LuaSandbox::getProfilerFunctionReport to return timings in percentages of the total.

Luasandbox

In this section

Source: reference/luasandbox/luasandbox.xml · from the official PHP manual (php/doc-en)