
Programming & Coding · PHP
PHP Code Output Quiz: Predict the Result
PHP output questions for PHP 8: loose comparisons, numeric strings, ??, foreach, array_map() and array_filter(), the spaceship operator, match and isset().
Quiz · PHP
A PHP quiz for beginners: the <?php tag, $variables, echo, string concatenation, single versus double quotes, intdiv(), arrays, count() and strlen().
PHP quizzes on variables, strings and arrays, predicting what PHP 8 code prints, and object-oriented PHP with classes, traits and exceptions.
Before you start
You have 15 seconds for each question. When time runs out, the question counts as wrong.
Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.
At the end you see your score and can go back through every question and its answer.
XP scales with your score. Replays earn XP only when you beat your previous best.
From players
Play next

Programming & Coding · PHP
PHP output questions for PHP 8: loose comparisons, numeric strings, ??, foreach, array_map() and array_filter(), the spaceship operator, match and isset().

Programming & Coding · PHP
A PHP OOP quiz: classes, constructor promotion, visibility, traits, static members, exceptions, namespaces, strict types, readonly and the nullsafe operator.