PHP Online Coding Test
- Junior, senior or expert
- Question bank or custom questions
- Updated
A CoderPad PHP coding test is an online test for Laravel and WordPress developers that you build in CoderPad Screen, with questions from the CoderPad question bank or your own, junior to expert. CoderPad Screen scores every PHP answer and shows how the candidate wrote it.
What can your PHP coding test cover?
The CoderPad question bank includes PHP questions on object-oriented PHP, traits and namespaces, database access with PDO, and testing with PHPUnit, suited to PHP, Laravel and WordPress developers. Build your test from these questions, your own, or both. Expert questions also cover caching and query performance.
| PHP skills to assess |
|
|---|---|
| Jobs using PHP |
|
| Question types | Multiple choice, coding exercises |
| Levels | Junior, Senior, Expert |
| Questions | From the CoderPad question bank, your own questions, or both |
| Test length | Set by the questions you choose |
Sign up free to explore the question bank and try the candidate experience
Sample PHP coding question: Pass by value or by reference
Read the PHP code below and state what it prints, and what $number holds after the call. Then change the function so it doubles $number itself, using a reference parameter.
<?php
function multiplyByTwo($number) {
$number *= 2;
return $number;
}
$number = 5;
echo multiplyByTwo($number);
?>
What a good solution shows
- States that the script prints 10 and that $number stays 5, because PHP passes it by value.
- Adds & to the parameter, function multiplyByTwo(&$number), so the change reaches the caller.
- Notes when a reference makes PHP code harder to follow, and suggests returning the value instead.
How is a PHP coding test scored?
CoderPad Screen auto-grades each candidate's answers and gives you a scored report. The report shows each candidate's strengths and weaknesses and compares their skills with others who took similar assessments.
Code playback shows how each candidate thinks:
- See how they approach a problem and build their solution.
- Note areas to explore further in later interviews.
- Spot questionable or concerning behavior.
How CoderPad prevents cheating in PHP tests
Plagiarism detection and copy/paste tracking flag PHP answers that match known solutions or were pasted in. To confirm they understand it, add a video follow-up question that asks them to explain their solution and the main decisions behind it.
Code playback
See how candidates wrote their code or text.
Plagiarism detection
Flags when a previous candidate's exact code is reused.
Copy/paste tracking
Shows when code may have come from elsewhere.
AI follow-up questions
Check candidates understand their code.
See how video questions work See all cheating prevention features
How building a PHP coding test works
Build the test
Pick PHP questions from the CoderPad question bank, write your own, or combine both.
Invite candidates
Send each candidate a link to the test by email.
Candidates take the test
They code in the browser, with nothing to install.
Review results
Read the scored report and watch the code playback.
Create and send coding assessments in 60 seconds, even if you're not techy. Choose the level and the number of questions, and add your own coding exercises whenever you need them.
How do you test PHP skills before hiring?
Check PHP skills in three steps: a coding test, a look through a Laravel or Symfony project, and a live code review. Many PHP resumes list WordPress without showing whether the developer writes tested, object-oriented code.
Questions to ask and signals to look for at each step:
Portfolio
Ask for a Laravel or Symfony app that uses PSR-4 autoloading in composer.json. It shows modern PHP habits.
Code on GitHub
PHPUnit tests and prepared statements in database code show care for quality and security.
Coding test level
Use the junior level for PHP support roles and the expert level for developers who own caching and performance.
Live interview
Review one of the "Fix the code" questions from CoderPad's PHP interview questions together.
PHP interview questions 5 ways to test developers' skills before hiring
How should you screen PHP candidates?
- Send the PHP test once a recruiter has confirmed which framework the candidate knows.
- Choose questions for the framework the role uses, such as Laravel or WordPress.
- Say in the job ad that an online PHP test comes before the first interview.
We had no unified approach or tool to assess technical ability. Today, CoderPad Screen enables us to test against a wide selection of languages and is continually updated.
Trusted by 4,000+ customers worldwide
Security and compliance
SSO / SAML
Okta, Azure AD, Google and other SAML 2.0 providers, on the Enterprise plan.
SOC 2 Type 2
SOC 2 Type 2 report available.
GDPR compliant
GDPR and CCPA compliant.