Skip to Content


You (Level 0)
0% Complete
Last Badge Earned
None

The PHP Notepad is still currently under development. It probably still has some vulnerabilities, but I am working to resolve them. The finalized version is coming soon, but feel free to use it! I would like to thank everyone for testing this beta version, especially the reddit PHP community.

Have you ever wanted to try to execute some PHP code really quick? It is very annoying to open a text editor, write the code, upload the file, and then navigate to its address. That is a lot of steps just to see your PHP code. Why not test your php code right here in the PHP Notepad?

The PHP Notepad executes your PHP code online.

It is true that certain PHP functions have been restricted on the PHP Notepad. Ok, many functions have been restricted as PHP has a few thousand functions. The most useful functions are enabled, but the functions you could use to take down this website are not, but hopefully, you did not want to hack my site anyway. If you want to do file manipulation, printing server variables, etc., you will probably need to open your own offline editor.


The PHP Notepad can take 3 types of input:

Example 1 echo 'The output of your code will be displayed here!'; // initially assumes it is PHP
Example 2 <?php echo 'The output of your code will be displayed here!'; ?>
Example 3 <h1><?php echo 'The output of your code will be displayed here!'; ?></h1>

However, the PHP Notepad will not let you use PHP codes inside HTML without PHP tags. This is because you cannot determine PHP inside HTML without PHP tags. Therefore, it will display as regular HTML.

Problems with the PHP Notepad?

The PHP Notepad is in beta testing, but is slowly moving into production. If you find any issues with the PHP Notepad or cannot figure out how to use it, please use the comments form below to tell me about any issues. Don't hesitate; I really want to make it better and help you learn! Of course, you can also send suggestions on how to improve how you can test your PHP code. The PHP Notepad is only for practice and quick executions.


If you enjoyed this resource, support me by sharing this page with others.

Comment on

  • User

    test123 Oct. 25, 2014, 8:10 a.m.

    Thx !!!!!

  • User

    Jacob JJay Oct. 11, 2013, 10:40 a.m.

    Super tool for newbies :) i recommend it

  • User

    Saurabh Tyagi Sept. 30, 2013, 4:45 a.m.

    I don't know more about php so i think i can learn php by using this tool. Lets see how useful it will be.

  • User

    Jared Drake Feb. 28, 2013, 10:22 a.m.

    @RoliSoft. Thanks again. I swear I had file_get_contents on the ban list... Guess not. Those have all been fixed as well. Also, this file is &quot;sandboxed&quot; on another server. So, any impact the vulnerability has will not affect afterhoursprogramming.com

  • User

    Jared Drake Feb. 27, 2013, 10:03 a.m.

    @RoliSoft Thank you sir. Those issues should be fixed, I don't know why I forgot to block those. I am sure there are a few more that I missed... :(