What does this code output?
Select an option, then click Submit answer.
- ○ 10
- ○ 55
- ○ 5 + 5
- ○ A TypeError is thrown
Loading demo links...
Showing 1–10 of 10 questions
What does this code output?
Select an option, then click Submit answer.
A file begins with declare(strict_types=1); and passes a float to a function parameter typed int. What happens?
Select an option, then click Submit answer.
What is the value of $name after this code?
Select an option, then click Submit answer.
What does this code output?
Select an option, then click Submit answer.
How does array_merge() treat integer keys differently from the array union operator (+)?
Select an option, then click Submit answer.
Consider match($n) { 1 => 'one', '1' => 'string one', default => 'other' }. How does a match expression differ from a switch statement in PHP 8?
Select an option, then click Submit answer.
What is the result of this comparison in PHP 8?
Select an option, then click Submit answer.
What does this code output?
Select an option, then click Submit answer.
Select TWO statements that are true about PHP arrays.
Select all that apply, then click Submit answer.
Select TWO features that were added to PHP's type system in PHP 8.0 or later.
Select all that apply, then click Submit answer.
This page holds a free practice test for the Zend PHP Certified Engineer (ZPCE) certification from Zend. You will find 10 free questions, drawn from the full Study4Pass practice set of 90 questions for this exam. The questions follow the same topic balance as the real exam: PHP Fundamentals and Data Types; Functions and Object-Oriented Programming; Strings, Patterns and I/O; Web Features and Security; Databases, SQL and Error Handling.
Pick an answer for each question and check it straight away — the correct answer and a full explanation appear under the question. There is no time limit and nothing to sign up for. When an explanation is not enough, use Ask AI: this is an AI-Enabled practice test, and Ask AI explains the concept behind the question in plain language. Ready for more? The full 90-question set adds a timed Exam Simulation mode, topic training for your weak areas, and a flagged-question review.
Covers the Zend syllabus topics PHP Basics, Data Format and Types, and Arrays: PHP syntax and semantics, scalar and compound types, type juggling and strict types, operators such as ?? and ?->, match expressions, JSON and serialization formats, and PHP's ordered-map arrays with their core functions.
PHP syntax, type system and juggling, strict_types, null coalescing and nullsafe operators, match expressions, JSON handling, array functions and sorting, serialization
Covers the Zend syllabus topics Functions and Object-Oriented Programming: function definitions, variadics, closures and arrow functions, generators, fibers, classes, inheritance, interfaces, traits, typed and readonly properties, enums, attributes, and constructor property promotion through PHP 8.4.
closures and arrow functions, variadics, generators and fibers, inheritance and interfaces, traits, typed and readonly properties, enums, attributes, namespaces and autoloading
Covers the Zend syllabus topics Strings and Patterns and I/O: quoted strings and heredocs, multibyte-safe string functions, PCRE regular expressions and modifiers, file and directory handling, streams and stream contexts, CSV processing, and file locking.
string functions, mbstring, PCRE patterns and modifiers, file handling, streams and contexts, CSV processing, glob and directory iteration, file locking
Covers the Zend syllabus topics Web Features and Security: superglobals, forms, sessions and cookies, HTTP headers and redirects, output escaping against XSS, CSRF defenses, password hashing and verification, secure random generation, input validation, and safe file-upload handling.
sessions and cookies, HTTP headers, htmlspecialchars escaping, CSRF tokens, password_hash and password_verify, random_bytes, filter_var validation, secure uploads
Covers the Zend syllabus topics Databases and SQLs and Error Handling, plus the owner's 'And Other PHP Concepts' catch-all: PDO connections, prepared statements and transactions, SQL joins and grouping, the Throwable hierarchy, try/catch/finally, custom error handlers, exception chaining, and platform topics such as OPcache.
PDO and prepared statements, transactions, SQL joins and HAVING, Throwable and Error hierarchy, try/catch/finally, error handlers, exception chaining, OPcache
Yes — the 10 questions on this page are completely free, with no signup and no payment details needed.
90 questions. The 10 free questions above are a sample of that full set, in the same style and topic balance.
Yes — every question shows the correct answer with an explanation, and Ask AI can explain the concept behind a question in plain words if you want to go deeper.