Interview questions: looking for the best way to hire a PHP Developer?

We’ve compiled a list of interview questions normally used in an online skills assessment for a PHP Developer role.

To hire a great PHP Developer it’s not enough to ask “resume questions” about someone’s experience. The best way to predict performance is to test job-related skills by seeing how candidates perform tasks they’d normally do on the job.

In this skills assessment you’ll find interview questions that evaluate a mix of skills relevant to a PHP Developer role, including PHP, Technical Communication, and Software Engineering.

PHP Interview coding preview

PHP Developer interview questions

Question 1

PHP Developer

QUESTION TYPE:
Multiple-Choice
icon for question type

PHP Developer

What is the line of code that you use to start a new session in PHP?

Sign up to to use this question in a Vervoe skills test

Question 2

Backend Development

QUESTION TYPE:
Text
icon for question type

Backend Development

What is the best way to transfer a large object to a server? ie upload a 5GB file

Sign up to to use this question in a Vervoe skills test

Question 3

Backend Development

QUESTION TYPE:
Multiple-Choice
icon for question type

Backend Development

What is the purpose of XMLHttpRequest?

Sign up to to use this question in a Vervoe skills test

Question 4

Backend Development

QUESTION TYPE:
Text
icon for question type

Backend Development

What is the difference between a session variable versus a cookie? (In terms of where the information is stored).

Sign up to to use this question in a Vervoe skills test

Question 5

PHP Developer

QUESTION TYPE:
Multiple Choice
icon for question type

PHP Developer

How would you declare an associate array named food where item1 = Apple, item2 = Pear and item3 = Banana.

Sign up to to use this question in a Vervoe skills test

Question 6

Communication, PHP Developer

QUESTION TYPE:
Video
icon for question type

Communication, PHP Developer

Imagine you are in a meeting with the executive team. The VP of Marketing (with a non-technical background) says that they were speaking to their friend who builds apps; this friend told them that our company needs to move from Symphony 5 (PHP library) to Symphony 7 because it is a far superior framework and will make us less competitive in the market if we don't move. The VP of Marketing says this sounds urgent and the CEO turns to you for your input. Record a video of how you would respond.

Sign up to to use this question in a Vervoe skills test

Question 7

PHP Developer

QUESTION TYPE:
Code Editor
icon for question type

PHP Developer

Create a function named 'math' in this function you will times the two input variables and see if the result is divisible by 2, if it is return 1, otherwise return 0.

Sign up to to use this question in a Vervoe skills test

Question 8

PHP Developer, Backend Development

QUESTION TYPE:
Audio
icon for question type

PHP Developer, Backend Development

You're working for a start up and the CEO gazes towards you and asks you a question about SQL injection attacks. Last night he read a post on Linkedin about data breaches and wants to make sure the company is using all the proper PHP techniques to mitigate such an attack. Explain in two minutes or less the practices you've used to make sure your inputs are sanitised.

Sign up to to use this question in a Vervoe skills test

Question 9

PHP Developer

QUESTION TYPE:
Code Editor
icon for question type

PHP Developer

Create a function named findPrime with two input integers which returns the sequence of prime numbers in the range of two numbers.

Sign up to to use this question in a Vervoe skills test

Question 10

PHP Developer

QUESTION TYPE:
Code Editor
icon for question type

PHP Developer

Write a function in order to check whether a word is a isogram or not. Please return a boolean true or false.

Sign up to to use this question in a Vervoe skills test

Question 11

PHP Developer

QUESTION TYPE:
Code Editor
icon for question type

PHP Developer

You've been asked to write a simple proof of concept PHP script to process a login page. You're required to check that; 1) The username has no spaces in it. 2) The password is greater than or equal 10 characters 3) The first letter of the password is capitalised. The username post variable is 'user'. The password post variable is 'password'. If a username and password combo satisfies these conditions return an array with the username and password, otherwise return false;

Sign up to to use this question in a Vervoe skills test

Great people are worth it

Talent management is the most important competitive advantage in any business.

Vervoe helps companies reach their potential by avoiding bad hires, which cost up to 2.5x salary.

Start using this skills test