HolyPHP Guide for Beginners

Learn HolyPHP from scratch, one chapter at a time. No prior experience required.

About HolyPHP: A compiled, memory-safe programming language with the soul of PHP and the discipline of Rust. Write like PHP, compile to native machine code with compile-time borrow checking.

Table of Contents

Learning path: Chapters 1–9 build the foundations in order. Then continue in the Interactive Guide for control flow, functions, arrays, classes, ownership, borrowing and application-sized examples. The language reference is the companion when you need exact syntax.

Part 1: Getting Started

  1. What is HolyPHP? — Understanding the language
  2. Installation & Setup — Get the compiler running
  3. Hello, World! — Your first program
  4. Using the Playground — Code online

Part 2: The Basics

  1. What are Variables? — Storing data
  2. Data Types — int, float, string, bool, and more
  3. Operators — Doing calculations and comparisons
  4. Input and Output — Communicating with the user
  5. Comments — Documenting your code

Continue with the Interactive Guide

These topics have hands-on lessons in the Interactive Guide. Each lesson explains the concept, shows a complete example and points to the relevant reference page.

Reference and practice

Use the Language Reference for syntax and semantics, Examples for complete programs, and the Playground to experiment without a local setup.

Ready to start?

Start with Chapter 1 →

Or jump straight to the Playground