GCSE computing: PHP practice test (mixed) – Years 10–11
These are UK practice tests (year groups, national curriculum). In the US? Try the US version →
A free PHP practice test for Years 10–11 (ages 14–16): 20 questions, marked instantly – write, fix and predict real PHP code in your browser. No sign-up. This test is for Years 10–11 (ages 14–16).
Before you start
20 questions on everything in the PHP course, mixed, picked from a bank of 72 each time. Some questions ask what a program prints or which message PHP shows; some ask you to put lines in order, fill in a trace table, or write or fix a short program. When you write or fix code, press Run to try it. It is marked when you move on: your program is run in your browser against the example and some hidden tests (other values and other form data). Choose Practice to see the answer after each question, or Test to see your answers at the end.
- 20 questions – a new mix each time you try
- PHP runs in your browser – nothing to install (the first code question downloads PHP once, about 3 MB)
- A keyboard helps for the coding questions
No sign-up and no adverts. Your answers and your code stay on this device. Nothing you type in the test is sent to us – unless you choose to report a problem with a question.
How it is marked: Classfern's own checks, in your browser. Code is run in a locked box against tests, some of them hidden; nothing is marked by a person or by guesswork. Spot a mistake? Use the Report button.
Classfern practice material. Not an official test. Written by Classfern for practice. Not affiliated with or endorsed by any exam board, testing agency, school district or government department. Classfern is not affiliated with or endorsed by The PHP Group. PHP runs here as php-wasm, under its open-source licences.
Curriculum: the key stage 4 computing programme of study says pupils should be taught to develop their capability, creativity and knowledge in computer science, digital media and information technology; and to develop and apply their analytic, problem-solving, design, and computational thinking skills; and to understand how changes in technology affect safety, including new ways to protect their online privacy and identity, and how to report a range of concerns.
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.