Chapter 4: Using the Playground

Don't have HolyPHP installed yet? No problem! You can write and run HolyPHP code directly in your browser using the HolyPHP Playground.

What is the Playground?

The HolyPHP Playground is a browser-based IDE with online code execution. It features:

Accessing the Playground

You can access the playground at:

Open HolyPHP Playground →

Playground Interface

The playground is divided into several sections:

SectionPurpose
Sidebar (Left)Examples, Quick Reference, and Resources
Editor (Center)Write your HolyPHP code here with syntax highlighting
Output Panel (Right)See the results of your program
Toolbar (Top)Run, Check, Save, and other actions

Running Your First Program

  1. Open the Playground
  2. Type your code in the editor (or load an example)
  3. Click the "▶ Run" button
  4. See the output in the right panel

Using Examples

The sidebar has many ready-to-run examples. Click any example to load it into the editor, then click Run to see it in action.

Great examples to try first:

Safety & Security

The playground runs your code in a secure, sandboxed environment. This means:

This is safe for learning and experimentation!

Tips for Using the Playground

Note: For GUI programs using the ui library, you'll need the local compiler installed. The playground is best for console programs.
Try it yourselfMake your first playground edit. Open the Playground, change the example greeting, run it, then change one number. Save or copy the final code so you can run it locally later.
Show a hint

Take one small step at a time. Follow the instructions above, write down the result you expect, and compare it with what your terminal or Playground shows. If a command fails, check the filename and that you opened a new terminal after installation.