是否有一个PHP沙箱,例如JS的JSFiddle?
Is there a PHP Sandbox, something like JSFiddle is to JS?
推荐答案如果您正在寻找一个在线网站来使用PHP代码,请尝试
If you are just looking for an online site to play around with PHP code, try
- phpfiddle/
- ideone/
- codeanywhere/
- www.tehplayground/
- sandbox.onlinephpfunctions/
- codepad/
- eval.in/
- implode.io/(允许附加Laravel框架的版本)
- phpfiddle/
- ideone/
- codeanywhere/
- www.tehplayground/
- sandbox.onlinephpfunctions/
- codepad/
- eval.in/
- implode.io/ (permits attaching a version of the Laravel framework)
最复杂的是:
- 3v4l/
它使您可以测试从PHP4开始的所有PHP版本中的代码.
It lets you test your code in all PHP versions starting from PHP4.
如果您希望在自己的本地环境中使用某些东西,则 Runkit扩展的目的是提供一个PHP沙箱:
If you want something for your local environment, the Runkit extension aims to provide a PHP Sandbox:
实例化Runkit_Sandbox类将创建一个具有自己的作用域和程序堆栈的新线程.使用传递给构造函数的一组选项,可以将此环境限制为主要解释器可以执行的操作的子集,并为执行用户提供的代码提供更安全的环境.
Instantiating the Runkit_Sandbox class creates a new thread with its own scope and program stack. Using a set of options passed to the constructor, this environment may be restricted to a subset of what the primary interpreter can do and provide a safer environment for executing user supplied code.
如果您不想使用Runkit但仍希望在服务器上使用PHP控制台,请尝试
If you dont want to use Runkit but still want a PHP Console on your server, try
- Jordi Boggiano的博客-浏览器中的PHP控制台
- github/seldaek/php-console
- Jordi Boggiano's Blog - PHP Console in Your Browser
- github/seldaek/php-console
更多推荐
是否有一个PHP沙箱,类似于JS的JSFiddle?
发布评论