Replace deprecated /e preg_replace modifier and require PHP 5.3

- The /e modifier was deprecated in PHP 5.5
- Using preg_replace_callback with anonymous functions, added in PHP 5.3