LuaSandbox is an extension for PHP 7 and PHP 8 to allow safely
running untrusted Lua 5.1 code from within PHP, which will generally
be faster than shelling out to a Lua binary and using inter-process
communication.

For more details see <https://www.mediawiki.org/wiki/LuaSandbox>.
