在线测试PHP脚本 [英] Test PHP Script Online
问题描述
上个月 codepad.viper-7.com 关闭了很多 stackoverflow 答案,粘贴在那里的代码变得破碎,包括我的一些。当它返回所有丢失的脚本时。
Last Month codepad.viper-7.com was down and a lot of stackoverflow answers with code pasted there became broken include some of mine. When it was back all scripts where lost.
我正在寻找一个免费的匿名替代 codepad.viper-7.com 我可以用最小的限制测试 php
脚本( fopen
, curl
, mb_strlen
等);在不同的版本上。
Am looking for a free anonymous alternative to codepad.viper-7.com where i can test php
scripts with minimal restriction (fopen
, curl
, mb_strlen
etc); on different versions.
这里有很多推荐但很难找到合适的替代 codepad.viper-7.com
There so many of them recommended here but its difficult to find suitable replacement to codepad.viper-7.com
简单测试脚本
<?php
echo strlen(file_get_contents("http://google.com"));
?>
输出
- codepad.viper-7.com = 43736
- sandbox.onlinephpfunctions.com =已停用
- writecodeonline.com =禁用
- exorithm.com = 43736但非匿名func,print_r等已禁用
- codepad.org =失败
- ideone.com =已停用
- coderun.com = 43736但仅支持PHP版本5.3.1
- codeanywhere.net =需要注册
- eval.in =禁止系统调用socketcall
- 3v4l.org =失败
- codepad.viper-7.com = 43736
- sandbox.onlinephpfunctions.com = disabled
- writecodeonline.com = disabled
- exorithm.com = 43736 but non-anonymous func, print_r etc disabled
- codepad.org = failed
- ideone.com = disabled
- coderun.com = 43736 but Only PHP Version 5.3.1 supported
- codeanywhere.net = Registration Required
- eval.in = Forbidden syscall socketcall
- 3v4l.org = failed
问题:
是否有任何匿名替代方案,限制最少?
Is there any anonymous alternative with minimal restrictions ?
推荐答案
您可以尝试 phpfiddle。组织。但请注意, http://google.com
会重定向到 https://www.google.com
,所以 file_get_contents
将返回 301已移动
。
You can try phpfiddle.org. But be aware that http://google.com
is redirected to https://www.google.com
, so file_get_contents
will return 301 Moved
.
这篇关于在线测试PHP脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!