CodeIgniter recommends PHP 5.6 or newer to be used, but it should be compatible with PHP 5.3.7. Your code must either be compatible with this requirement, provide a suitable fallback, or be an optional feature that dies quietly without affecting a user’s application.
Additionally, do not use PHP functions that require non-default libraries to be installed unless your code contains an alternative method when the function is not available.