What potential compatibility issues should developers be aware of when transitioning PHP scripts to PHP7?

One potential compatibility issue when transitioning PHP scripts to PHP7 is the removal of deprecated features such as the use of the "each()" function on arrays. Developers should update their code to use foreach loops instead to iterate over arrays.

// Before PHP7
while (list($key, $value) = each($array)) {
    // code here
}

// After PHP7
foreach ($array as $key => $value) {
    // code here
}