Quiz 16/16: Answer the following question

  • Suggested by FredBouchery
  • Created on 2020-10-12
  • Difficulty: expert

WTF PHP 8 quiz: What will be displayed ? 🤔

PHP Quiz n°16

Select your answer: 🧐


✅ { answer }: correct!

❌ { answer }: Wrong answer!

Yes, PHP 8 always has alternative syntax for control structures, and you can mix them. "goto" was introduced in PHP 5.3 and it still exists in version 8. This is not a good practice, please do not use it. This quiz is a joke! The right answer was "fooend" (B).
▶  Click here to run this code on 3v4l.org

Poll

  • A: end - 29.6%
    percent%
  • ✅ B: fooend - 40.7%
    percent%
  • C: foofooend - 9.3%
    percent%
  • D: Parse Error - 20.4%
    percent%
▶  Click here to see the Twitter poll
Click here to see output differences between PHP versions

It also works with previous PHP versions!



Going further... 🤓

Want More? 🤔

👈️ Get back to first question