Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a PHP Sandbox, something like JSFiddle is to JS? [closed]

Tags:

php

sandbox

Is there a PHP Sandbox, something like JSFiddle is to JS?

like image 873
Jiew Meng Avatar asked Jan 06 '11 14:01

Jiew Meng


People also ask

Can you use PHP in JSFIddle?

Implode.io is a tool for running PHP code online, just like JSFIddle do,And you can choose Laravel and PHP versions, so your PHP code will run in the specified environment.

Is JSFIddle free?

jsFiddle is a free code-sharing tool that allows you to edit, share, execute and debug Web code within a browser.


1 Answers

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/ (permits attaching a version of the Laravel framework)

The most sophisticated is:

  • http://3v4l.org/

It lets you test your code in all PHP versions starting from PHP4.

If you want something for your local environment, the Runkit extension aims to provide a PHP 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.

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
like image 101
Gordon Avatar answered Oct 17 '22 11:10

Gordon