Chapter in this post:
Learning the PHP programming language is not that difficult. I taught myself the programming completely myself with example scripts and a PHP book. Maybe today I would Udemy course on PHP because that is much more entertaining than rolling through books.
My code is certainly not presentable as an example of particularly elegant programming. But in the end, the bottom line is whether the code works - and it always has so far ... at some point.
On many PHP websites, when explaining functions, there are small snippets of code that can be modified to suit your own needs. If you only want to try this out briefly, you usually have to run a local PHP server (for example MAMP) or upload your script to a web server on the Internet.
Today, however, I came across a helpful service that enables small PHP codes to be executed directly in the browser window. A small but nice PHP sandbox. This is very useful if you want to make small changes to the script quickly and see the result.
Of course, there are also limits to this, because multi-page scripts, file transfers, form calls and similar complex things can of course not be run there. But if you want to work with strings or try out PHP functions that relate to screen output, then the service is great.
I've looked at a few websites that offer a PHP sandbox. Quite a few of them are showered with advertisements and others have no real HTML output, but display the source code of the HTML. This can also be helpful under certain circumstances, but told me the sandbox from W3Schools most too. There is only a little advertising there, but a clean output and a few options to change the editor.
The W3Schools website is also a recommendation because there are so many PHP examples which can be found under the corresponding PHP commands. The website has an area for self-taught people PHP exercises and another area with a PHP quiz with 25 questions on the topic.
If you prefer the output as visible HTML code, you can the sandbox of Online PHP Functions look at. Here, too, the advertising is in the frame and not too intrusive.
A nice goodie that can only be found with Online PHP Functions is the ability to share your script with other people via a link. For example, you can present a script on your homepage and then link to the version for testing with the online service.
If you also have tips for testing PHP commands, I would appreciate your comment. Certainly some of you are more familiar with PHP than I am and maybe have ideas on how to try out small scripts in an uncomplicated way.
Jens has been running the blog since 2012. He appears as Sir Apfelot for his readers and helps them with problems of a technical nature. In his free time he drives electric unicycles, takes photos (preferably with his iPhone, of course), climbs around in the Hessian mountains or hikes with the family. His articles deal with Apple products, news from the world of drones or solutions for current bugs.