是否有一个PHP沙箱,类似于JS的JSFiddle?

编程入门 行业动态 更新时间:2024-10-24 14:24:57
本文介绍了是否有一个PHP沙箱,类似于JS的JSFiddle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有一个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?

本文发布于:2023-11-06 21:20:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:类似于   有一个   PHP   沙箱   JS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!