PHP online


PHP code

PHP version:



Please do not break this free tool!

PHP tester allows to test PHP code Online without install. You can test your code easily and quickly. You can test PHP 8 :)

You can test PHP MySQL with PDO, and also test PHP Sodium (PHP 7.4.8 and PHP 8 Only).

To execute your code, you must copy and paste, drag and drop a PHP file or directly type in the "PHP code" online editor below, and click on "Run" button.

You can see the user guide to help you to use this php sandbox tool.

User guide

How to execute PHP code:

  • First, Drag and drop your PHP file or copy / paste your PHP text directly into the editor above.
  • Finally, you must click on "Run" button to display the result.
How to share PHP code:
  • Click on the menu button "Save & share".
  • Choice a password to protect your share, so only you can change it.
  • Note the URL to access your share.
How to test PHP MySQL Online using PDO:
  • Click on the menu button "Load example" > "PDO / MySQL".
How to generate public and secret keys Online using sodium:
  • Click on the menu button "Load example" > "Sodium / Generate public and secret keys".

PHP tester

PHP code tester tool allows to test your PHP code online directly in your browser.

This PHP playground can be useful to make online test to save time (deployment ...).

Note: Some functions have been disabled for security reasons.

Save and Share
Save this PHP snippet in order to share it.
Be careful, the data will be accessible to everyone, please do not save sensitive data.
Save PHP snippet
Your PHP snippet has been permanently saved and you (or anybody) can access with this link:
Choice a password to modify/delete this PHP snippet later Enter password to modify this PHP snippet. Enter password to delete this PHP snippet. Enter the new password for the fork.