Free quiz · 40 questions in the bank

PHP 8 Quiz

Answer 10 random questions about PHP 8, then see your score and why each answer is right. Every attempt draws a new set.

Sample questions

  1. What does match use to compare the subject with each arm?
  2. What happens when no match arm matches and there is no default?
  3. In PHP 8, what does 0 == 'foo' evaluate to?
  4. Which feature was introduced in PHP 8.1 (not 8.0)?
  5. What is the difference between BackedEnum::from() and tryFrom()?

All quizzes · Sign in to save your scores and get the questions you miss back in Daily Review.

Was this page helpful?