🌐
OnlinePHP
onlinephp.io
PHP Sandbox - Execute PHP code online through your browser
Run PHP code in your browser online with this tool in 400+ PHP versions
About OnlinePHP.io
Run PHP code in your browser online with this tool in many different PHP versions
password_hash
Execute and test password_hash with this online tool
🌐
Programiz
programiz.com β€Ί php β€Ί online-compiler
Online PHP Compiler - Programiz
Write and run your PHP code using our online compiler. Enjoy additional features like code sharing, dark mode, and support for multiple programming languages.
Discussions

Is there an online program that simulates a server that runs php?
Normal shared hosting for a few bucks a month should be more than enough. More on reddit.com
🌐 r/PHP
45
4
July 28, 2023
"Optimization: How I made my PHP code run 100 times faster"
Use scalar type hinting. This is the secret PHP performance feature that they don’t tell you about. It does not actually change the speed of your code, but does ensure that it can’t be run on the slower PHP releases before 7.0. Come on, this is pretty silly. It's not a "performance feature". Scalar type hinting does in fact make your code run a bit slower as far as I know. I wouldn't ever go back to the days without it, but the reasoning here is weird. More on reddit.com
🌐 r/PHP
62
69
September 19, 2019
Can't run python code from PHP- No output
Final2.py has to be executable. (chmod +x) and in Final2.py #!/usr/bin/pytho should be #!/usr/bin/python ? OR instead of '/Applications/XAMPP/xamppfiles/htdocs/FinalProject/Final2.py' you can do: /usr/bin/python /Applications/XAMPP/xamppfiles/htdocs/FinalProject/Final2.py More on reddit.com
🌐 r/PHPhelp
8
1
September 3, 2019
What is the best way to start learning PHP?

Learn the language first, not a framework or a CMS.

Below is a basic outline of what you'll need to know. Use this as a guide to help you find the information you need. Sorry for not posting any actual resources, but you can consider this a basic syllabus.

Basics

Like anything. Walk before you run. There is a LOT to the "basics" of any language, but these four are where you will derive most value out of PHP. Practice these things until you can do them in your sleep.

  1. The syntax (variables, arrays, if/else, loops, objects, interfaces etc)

  2. Doing stuff with $_GET and $_POST variables, and generally understanding how a request & response in PHP works.

  3. How to perform SQL queries with PDO (don't bother learning mysql_, as it's deprecated. Also recommend avoiding mysqli_, as its a dated procedural way to code)

  4. How to work with sessions & cookies

Security

Key security concepts to understand when building a PHP application. This is NOT a complete list, but it accounts for most of the vulnerability points an application can make. This is after the basics because it's that important - knowing this stuff is simply not optional.

  1. Cross Site Request Forgery protection (CSRF)

  2. Filtering input to prevent malicious code execution

  3. Filtering input and using PDO prepared statements to stop SQL injection

  4. Escaping output to mitigate Cross Site Scripting vulnerabilities (XSS)

  5. How to hash and store passwords (php 5.5 made this a lot easier)

  6. How to safely upload images & files

  7. Configuring your environment for maximum error checking

Object Oriented Design

Once you're comfortable with the basics & security, you should start thinking in terms of objects, and read up on/practice the following concepts. Like the above, do these until they're second nature.

  1. S.O.L.I.D. principles - S is the most important.

  2. Programming to an interface

  3. Favoring composition over inheritance

  4. Dependency injection

  5. Namespaces

  6. Exceptions (not technically part of OO Design, but it's a bit too advanced

Application Architecture

This refers to how you would structure an application from top to bottom.

  1. MVC pattern (and in general, layered architecture)

  2. Basic understanding of what is meant by a domain and Domain Driven Design (this is a big topic, but you should at least understand the basics)

  3. Using an Inversion of Control container for managing dependency injection (start with Pimple, then checkout Laravel's IoC)

  4. Autoloading & using composer to manage external libraries and dependencies

  5. Various design patterns

  6. Unit testing

Frameworks

Knowing all of the above will help you take greater advantage of (and better appreciate) frameworks. It's easy to do a very bad job using a good framework if you don't quite understand the sections above. Frameworks aren't magic bullets - they require prior knowledge to be used effectively.

There are many frameworks to choose from. The most popular full featured frameworks are Laravel and Symfony, but you should dabble in a wide variety of them to get a sense for how they solve common problems.

There are many more nooks and crannies in PHP than what I've outlined above, but that should be enough to get you started. The key to all of the above is practice and tinkering.

Edit: thanks for the gold kind developer!

More on reddit.com
🌐 r/PHP
47
34
August 10, 2012
🌐
W3Schools
w3schools.com β€Ί php β€Ί php_compiler.asp
PHP Online Compiler (Editor / Interpreter)
... Click on the "Try it Yourself" button to see how it works. If you want to create your own website or build PHP applications, W3Schools Spaces gives you an easy place to write, run, manage, and publish code online.
🌐
OneCompiler
onecompiler.com β€Ί php
PHP Online Compiler
OneCompiler's PHP online editor helps you to write, compile, debug and run PHP code online.
🌐
Writephponline
writephponline.com
WriteCodeOnline - PHP | write and run php code online
Write PHP Online is an online code editor and compiler that helps you to write and test run PHP code online, learn PHP with our interactive tutorial.
🌐
NextLeap
nextleap.app β€Ί online-compiler β€Ί php-programming
NextLeap - Online PHP Compiler
The user-friendly online compiler platform that enables you to execute PHP programs effortlessly and at no cost. The editor also supports taking input from the user and standard libraries. Dive into the world of PHP development with our complimentary, easy-to-use tool.
🌐
Codeanywhere
codeanywhere.com β€Ί languages β€Ί php
PHP Online IDE, Compiler, Interpreter & Code Editor Β· AI Cloud IDE Β· Codeanywhere
You can code, learn, build, run, deploy and collaborate on your PHP projects instantly from our online browser based Cloud IDE.
Find elsewhere
🌐
Phpize
phpize.online
PHPize - format run and share PHP code with SQL queries online
<?php use Carbon\Carbon; $now = Carbon::now()->format('d/m/Y'); printf("Today is %s\nCurrent PHP version: %s \n\n", $now, phpversion()); $query = "SELECT VERSION() as version;"; // get DB version using PDO $stmt = $pdo->prepare($query); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); printf('DB version (PDO): %s ' ...
🌐
3v4l
3v4l.org
Online PHP editor | Test code in 250+ PHP versions
3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more than 250 different PHP versions (every version released since 4.3.0) for you to run online.
🌐
CodeChef
codechef.com β€Ί php-online-compiler
Online PHP Compiler
Welcome to our AI-powered online PHP interpreter, the perfect platform to run and test your PHP code efficiently. Our tool makes coding easy for developers of any skill level, whether you're a beginner or experienced.
🌐
PHP Playground
php-play.dev
PHP Playground
The Playground let you to execute basic PHP code in real time using WebAssembly technology.
🌐
OnlineGDB
onlinegdb.com β€Ί online_php_interpreter
Online PHP Interpreter - online editor
<?php /****************************************************************************** Online PHP Interpreter. Code, Compile, Run and Debug php program online. Write your code in this editor and press "Run" button to execute it.
🌐
Replit
replit.com β€Ί languages β€Ί php7
PHP Web Server Online Compiler & Interpreter - Replit
Write and run PHP Web Server code using our PHP Web Server online compiler & interpreter. You can build, share, and host applications right from your browser!
🌐
PHPHub
phphub.net β€Ί home β€Ί php sandbox
PHP Online
April 12, 2024 - Welcome to our PHP Tester! With our online platform, you can run PHP code without the need for any installations on your computer.
🌐
JDoodle
jdoodle.com β€Ί php-online-editor
Online Compiler and Editor/IDE for Java, C, C++, PHP, Python, Ruby, Perl - Code and Run Online
JDoodle is an Online Compiler, Editor, IDE for Java, C, C++, PHP, Perl, Python, Ruby and many more. You can run your programs on the fly online, and you can save and share them with others. Quick and Easy way to compile and run programs online.
🌐
Reddit
reddit.com β€Ί r/php β€Ί is there an online program that simulates a server that runs php?
r/PHP on Reddit: Is there an online program that simulates a server that runs php?
July 28, 2023 -

So I am builidng an "app" for a website and it's going to use php.

Clients are going to need to interact with a server that runs php.

Right now all I have is my Chromebook and an online connection.

Is there an online app that essentailly opperates as a virtually machine which I can program server-side php and then connect to using my computer.

Reason that I ask is that would highly prefer to not have to configure a vitural machine on my computer.

🌐
ReqBin
reqbin.com β€Ί code β€Ί php
Online PHP Code Runner
Run, save, and collaborate on PHP code online with ReqBin Online PHP Code Runner. Learn PHP with a comprehensive database of handpicked PHP examples. No additional software installation is required, and it's free.
🌐
Paiza
paiza.io β€Ί en β€Ί languages β€Ί online-php-editor
Online PHP/Java/C++... editor and compiler | paiza.IO
Paiza.IO is online editor and compiler. Java, Ruby, Python, PHP, Perl, Swift, JavaScript... You can use for learning programming, scraping web sites, or writing batch