Free · No sign-up · Real PHP 8.5

Small steps. Real code.

Short lessons where every one ends in a program you write, run and check right on the page. PHP runs inside your browser, so there is nothing to install and your code never leaves your device.

  • 99 interactive lessons
  • 380 function pages
  • Progress saved in your browser
YOUR WORKSPACEPHP 8.5 · in your browser
exercise.phpSaved in this browser
<?php
$colors = ["red", "green", "blue"];
$colors[] = "yellow";
echo count($colors), " colors, last: ", $colors[3];
Output
4 colors, last: yellow

How every lesson works

  1. Read one idea

    One concept explained in about ten minutes, with examples that were run before the page was published.

  2. Write real PHP

    Edit the starter code and run it as often as you like. Every run starts a fresh PHP 8.5 runtime in your browser.

  3. Pass the checks

    Checks test what your function returns. Pass them all to complete the lesson; your progress stays in this browser.

The PHP path: 100 lessons in 8 stages

See every lesson →

Beyond the lessons

Real PHP 8.5.10

Compiled to WebAssembly and run in a worker. Nothing is sent to a server.

Executed before publishing

Every example and solution runs on the same engine you use here.

Grounded in the manual

Each page links the official PHP documentation it was checked against.