PHP | Test yourself

You'll be presented 10 questions out of different categories.

Questions range from answering what output a certain block of code would produce to just fact-checking.

There is no time limit, so no stress.

You can go back at any time during the test. So you don't need to supply an answer immediately and you can correct an answer when you've already moved on.

While I certainly can't check it, it 'd be nice if you participated without looking up the answers on the big old internet. What would the point of taking this test be otherwise?

Found some errors? Wish to expand on something? You'll be given the opportunity to supply feedback at the end of the test.

Press 'Next' to start with the first question.

Good luck!

Please note: this test uses PHP version 7.1

1.

What is the result of the following code?


* click on the image to enlarge
stdclass
2.

What does the following code output?



* click on the image to enlarge
closure from callable
3. Which answers produce 'Hello Paul' as output provided that $user['firstname'] contains 'Paul'? (choose 2)
4. What is the output when the following code is run?

* click on the image to enlarge
math
5. Which of the following answers will NOT produce an error? (choose 2)
Sorry for disturbing, but due to too many spammers: Please type the correct text to continue (mind upper- and lowercase characters).
6.

What is the output of the following code?


* click on the image to enlarge
7.

What is the output when the following code is run?


* click on the image to enlarge
8.

What is the output when the following code is run?



* click on the image to enlarge
9. What is the output when the following code is run?

* click on the image to enlarge
variac
10. What is the output when the following code is run?

* click on the image to enlarge
call_user_func
11.

What is the output when the following code is run?


* click on the image to enlarge


Thank you for participating in this test!

If you liked this test, then you'll love the real exam! 71 Questions to challenge your knowledge and learn by doing.

show me the​ packages

You can leave your e-mailaddress so we can send you the results by mail as well. In this mail will be the questions, your answers and the correct answers along with a short description why this is the correct answer.

Leaving your emailaddress is optional. You will see the results whether or not you supplied one. I will not share your information with anyone.



E-mail address, so we can send you the results