PHP Coding Practice Challenges

Solve Easy, Medium, and Hard PHP challenges in an isolated sandbox.

Sum of Even Numbers in Array

Read an integer `n` followed by `n` integers from standard input and print the sum of all even numbers.

solution.php (PHP 8.x)