Test PHP Script Online [duplicate]

让人想犯罪 __ 提交于 2020-01-22 10:54:25

问题


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.

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.

There so many of them recommended here but its difficult to find suitable replacement to codepad.viper-7.com

Simple Testing Script

<?php
   echo strlen(file_get_contents("http://google.com"));
?>

Output

  • 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

Question:

Is there any anonymous alternative with minimal restrictions ?


回答1:


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.



来源:https://stackoverflow.com/questions/13986359/test-php-script-online

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!