是否有一个PHP沙箱,类似于JS的JSFiddle? [英] Is there a PHP Sandbox, something like JSFiddle is to JS?
问题描述
是否有一个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
- http://phpfiddle.org/
- http://ideone.com/
- https://codeanywhere.net/
- http://www.tehplayground.com/
- http://sandbox.onlinephpfunctions.com/
- http://codepad.org/
- https://eval.in/
- https://implode.io/(允许附加Laravel框架的版本)
- http://phpfiddle.org/
- http://ideone.com/
- https://codeanywhere.net/
- http://www.tehplayground.com/
- http://sandbox.onlinephpfunctions.com/
- http://codepad.org/
- https://eval.in/
- https://implode.io/ (permits attaching a version of the Laravel framework)
最复杂的是:
它使您可以测试从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's Blog - PHP Console in Your Browser
- http://github.com/seldaek/php-console
这篇关于是否有一个PHP沙箱,类似于JS的JSFiddle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!