array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'class.luasandbox.php', 1 => 'LuaSandbox', ), 'up' => array ( 0 => 'book.luasandbox.php', 1 => 'LuaSandbox', ), 'prev' => array ( 0 => 'luasandbox.examples-basic.php', 1 => 'Basic usage for LuaSandbox', ), 'next' => array ( 0 => 'luasandbox.callfunction.php', 1 => 'LuaSandbox::callFunction', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/luasandbox/luasandbox.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.luasandbox.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL luasandbox >= 1.0.0)
The LuaSandbox class creates a Lua environment and allows for execution of Lua code.
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.