Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHPExecute helps run php in browser to test code.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 css
Octocat-spinner-32 img
Octocat-spinner-32 includes added phpquery class May 28, 2012
Octocat-spinner-32 js
Octocat-spinner-32 README.md
Octocat-spinner-32 index.php
README.md

Author : Sarfraz Ahmed (sarfraznawaz2005@gmail.com)
Twitter : @sarfraznawaz
Blog : http://sarfraznawaz.wordpress.com/
LICENSE : MIT


WHAT IS PHPExecute?


PHPExecute is the fastest way to run/test/debug your PHP code. Here are some of the cool things about it:

  • Very fast way to test your code
  • Nice friendly interface
  • Code Highlighting
  • Useful PHP, system information panel
  • Saving favorite code snippets
  • Adding useful classes
  • Easy to extend as per your needs

Extending PHPExecute


The good thing is that you can download it, see its source code and extend it however you like according to your needs. For example, you can add classes for testing, performance or any other purpose. One can even integrate bash commands to make it even more useful tool to work with.


Usage Notes


  • PHPExecute uses eval function to run the code. It is strongly recommended that you should use that tool for local testing only and not on production server due to security reasons. If you do, you use it on your own risk.

  • In order to save snippets, PHPExecute uses localStorage feature which is available in latest browsers (and IE9+) only and also it can be around 5MB in size. This isn't that ideal of you are going to save a lot of snippets but you can always extend PHPExecute to add database support and save your snippets there or save them online using API of snipt.net or some other snippets site.

  • The custom functions that can be used in PHPExecute can be found in includes/functions.php file. You can add any functions in that file that you want to use directly inside PHPExecute. The custom functions can also be seen in PHP Info > User Defined Functions.

Something went wrong with that request. Please try again.