PHP 7 quiz medium level

TAKE THE TEST

Test description

This test will challenge your knowledge of the PHP 7 environment, with focus on the new features of PHP 7.
Topics: OOP, variables, operators, exceptions, void return type, generator delegation, iterable type, etc.

Sample questions

1 What is the result of the following code?

echo ( function($x) { return [$x, $x+1, $x+2]; } ) (4) [2];