W3docs
Exercises
PHP

PHP

Practise PHP with hands-on, interactive exercises — solve at your own pace and check your work as you go.

47 tasksInteractiveSelf-paced
1

Read the brief

Each exercise gives you a focused PHP prompt. Read it, plan, then code.

2

Solve interactively

Type your PHP answer right in the prompt — no setup required.

3

Check your work

Submit your answer to see if it matches. Reveal the solution any time you get stuck.