About ReqBin Online PHP Code Runner
ReqBin has been running PHP code in the browser since 2022. More than a million developers have used ReqBin since. The ReqBin Online PHP code runner executes your script on a PHP 8 interpreter and returns the output and any errors.
Paste the code, press Execute, and read the result: no plugins and no local PHP installation. If a script runs longer than five seconds, the editor stops waiting and reports an error.
- Run PHP code directly in your browser
- Catch syntax errors before you run: the built-in highlighter and validator mark PHP syntax problems in the editor.
- Send HTTP requests from your code: curl, sockets and openssl are loaded.
- Save a snippet, share its link, and discuss it with other developers.
- Open any of the 27 PHP examples, edit it, and run it in the same editor.
- Free of charge.
Is ReqBin an online PHP compiler?
PHP is an interpreted language, so there is no separate compile step. ReqBin runs your script on a PHP 8 interpreter and prints whatever it outputs, along with any parse or runtime error. The built-in validator marks syntax errors in the editor before you press Execute: the part a compiler would catch at compile time.
The runner loads curl, sockets, openssl, mbstring, SimpleXML, DOM, XSL and bcmath, among other extensions. There is no database: PDO ships without drivers and mysqli is absent, and the gd, zip and intl extensions are not loaded either.
What is PHP?
PHP is a general-purpose server-side scripting language that is widely used for web development. PHP was originally created by Rasmus Lerdorf in 1994. It originally translated as a Personal Home Page, but now it stands for PHP's recursive initialism: Hypertext Preprocessor. PHP powers Wikipedia and content management systems like WordPress, Drupal and Joomla. PHP is easy to learn, and that's why it has become so popular. The language syntax originates from C and Perl.
PHP code can be embedded directly into HTML without any frameworks, making it easy to create dynamic websites.
PHP can be deployed on most web servers and installed on most desktop workstations running modern operating systems, including Windows, macOS, and Linux.
What are the advantages of PHP?
- PHP is free and open source
- PHP has a short learning curve
- PHP comes out of the box on most hosting servers
- PHP statements can be embedded directly into HTML
- PHP is cross-platform; this means you can develop your project on Windows or macOS and deploy your application on Linux
- PHP is widely used by leading Internet companies and has a large and active community
How to run PHP code online?
With the ReqBin Online PHP code runner, you can run PHP code-snippets directly from your browser. No desktop apps or browser plugins are required. Just type the PHP code and click Execute. Built-in PHP code syntax highlighting will highlight PHP syntax and errors as you enter a PHP code. ReqBin also runs Python, JavaScript, Node.js and Java code in the browser.