fr
fr

56 interview questions on PHP7for developers (2025)

Test your technical skills before an interview of PHP7 with 56 corrected questions. Beginner, Intermediate or Expert level.

Technology
Profession
Test
Sort by
Newest
Most popular
Last review
Filter by
Published
3812
To review
13
56 questions
Hard
4 votes1183 runs
1 comment
Hard
3 votes1221 runs1 comment

What will this code display?

Back-end developer
php
null
empty
Julien Breuxat Dec 3, 2021
Medium
3 votes1194 runs0 comment

Display the first element of an array in PHP

Back-end developer
arrays
associative arrays
Julien Breuxat Dec 2, 2021
Hard
2 votes1224 runs0 comment

Which of the following statements are correct?

Back-end developer
interfaces
classes
Julien Breuxat Dec 3, 2021
Hard
2 votes1199 runs0 comment

What will this code display?

Back-end developer
comparison
boolean
Julien Breuxat Dec 16, 2021
Hard
2 votes1192 runs1 comment
Medium
2 votes1176 runs3 comments

Write a PHP code that displays the full name of a person.

Back-end developer
ternary operator
strings
Julien Breuxat Dec 16, 2021
Expert
1 vote1230 runs1 comment

List the reserved keywords in PHP

Julien Breuxat Dec 3, 2021
Medium
1 vote1199 runs0 comment

What is the PSR4 used for?

Back-end developer
autoloading
psr4
Julien Breuxat Dec 3, 2021
Medium
1 vote1183 runs0 comment

Write a PHP code that prints 1, 2, 3, 4

Back-end developer
functions
yield
Julien Breuxat Dec 1, 2021
Medium
1 vote1175 runs1 comment
Easy
1 vote1173 runs0 comment
Hard
1 vote287 runs0 comment

Explain the advantages of using classes in PHP.

Back-end developer
classes
object oriented programming
Yves Astierat Dec 1, 2021
Hard
1 vote108 runs0 comment

Which of the following statements are correct?

Back-end developer
interfaces
classes
Yves Astierat Nov 29, 2021
Hard
0 vote1195 runs0 comment

What will this code display?

Back-end developer
php
null
empty
Julien Breuxat Dec 16, 2021
Medium
0 vote1194 runs0 comment
Easy
0 vote1189 runs0 comment

What does PSR mean?

Julien Breuxat Dec 3, 2021
Easy
0 vote1185 runs0 comment

How to declare an empty return in PHP 7.1

Back-end developer
functions
return
Julien Breuxat Dec 3, 2021
Easy
0 vote1182 runs0 comment

Is this PHP code valid?

Back-end developer
arrays
constants
Julien Breuxat Dec 3, 2021