What are the potential errors that could arise in the PHP code provided?

The potential errors in the provided PHP code include missing semicolons at the end of each line, incorrect variable concatenation within the echo statement, and the use of a single equal sign (=) instead of a double equal sign (==) for comparison in the if statement. To fix these issues, add semicolons at the end of each line, properly concatenate variables within the echo statement using dots (.), and use double equal signs for comparison in the if statement.

<?php
$name = "John";
$age = 25;

echo "Hello, " . $name . "!";

if ($age == 25) {
    echo "You are 25 years old.";
} else {
    echo "You are not 25 years old.";
}
?>