GCSE computing practice tests: PHP programming (Years 10 to 11)
These are UK practice tests (year groups, national curriculum). In the US? Try the US version →
Free practice tests for older learners (Years 10 and 11, key stage 4): the programming skills of GCSE-style computing courses, practised in PHP – the language behind a huge share of the web. Every test writes, fixes and predicts real PHP code, run in your browser and marked instantly. For Years 10–11 (ages 14–16). In the US, that's Grades 9 to 12.
PHP tests (Years 10–11)
One test for each unit of the PHP course, plus a mixed test. Write, fix and predict real PHP – it runs in your browser. Learn it first in the PHP course (24 lessons).
How the tests are marked
- Predict: type what a program prints – marked line by line.
- Which message? say whether PHP shows a warning (and carries on), a fatal error (and stops) or a parse error (nothing runs).
- Trace tables and order: fill in a variable's values, or put mixed-up lines into a working order.
- Write it and fix it: your PHP runs in your browser against the example and hidden tests with other values and other form data, so it has to work every time.
Everything is marked by Classfern in your browser, straight away. Your code is never sent to us. The first code question downloads PHP itself (about 3 MB, once).
Learn first
The Programming Department has the full PHP course: 24 lessons, each with teaching, a worked example, practice and homework, starting with Lesson 1: echo, strings and the PHP tag.
Classfern practice material. Not an official test and not affiliated with or endorsed by the Department for Education or any exam board. Classfern is not affiliated with or endorsed by The PHP Group. PHP runs here as php-wasm, under its open-source licences.
Contains public sector information licensed under the Open Government Licence v3.0. Curriculum statements from: Department for Education, National curriculum in England: computing programmes of study, © Crown copyright 2013.