PHP 5.4 introduced several backward incompatible changes including removing support for safe mode and magic quotes and new reserved keywords like trait. New features were added such as traits for reuse of code, short array syntax, function array dereferencing, and improved session upload progress tracking. Several SPL classes and methods were also added or modified.