For this exercise, you will need:

  1. Access to an online PHP interpreter. Some good examples are: https://onecompiler.com/php and https://onlinephp.io/
  2. A cup of coffee ☕️

 

Step 1. Run the example code

To get started, go to https://onecompiler.com/php/, and just click RUN

That’s it! You just made your first PHP program! Nothing changed! Amazing!

Now that you’ve created the most boring program in the world. Let’s see how we can start to make it more interesting

Step 2. Change the text in the echo statement to anything else

With your cursor (just the part in between quotes) and change it to anything else, then click RUN again

Notice how the text in the right-hand window changes. This is your output. When you update your code in future examples, you’ll see the result of your program here.