PHP 8.x Programming MCQs & Mock Tests

Topic-wise bilingual PHP questions covering Basics, OOP, Modern PHP 8, PDO, Security, and MVC.

Q1 · OOP, Modern PHP 8.x & Type SystemIntermediate

Which PHP keyword resolves to the runtime called class in inheritance hierarchies (Late Static Binding)?

Q2 · OOP, Modern PHP 8.x & Type SystemAdvanced

Which PHP 8.1+ return type indicates a function always throws or terminates and never returns normally?