password_hash() supports Argon2i since PHP 7.2 and the recommended Argon2id since PHP 7.3, tunable via the memory_cost, time_cost, and threads options.
crc32c
PHP 7.4 adds CRC-32C, the cyclic redundancy check used by btrfs, ext4, and iSCSI, to the hash extension as the crc32c algorithm for hash().
mail()
mb_send_mail()
PHP 7.2 parses and filters the additional_headers parameter of mail() and mb_send_mail() to prevent header injections, and also accepts it as an array.
unserialize()
PHP 7 adds an options parameter to unserialize() whose allowed_classes entry restricts which classes may be unserialized, limiting unwanted code execution.
max_depth
PHP 7.4 introduces the max_depth option for unserialize() and the unserialize_max_depth ini setting to guard against deeply nested structures.
uniqid()
PHP 7 changes the internal source of randomness used by uniqid(), making collisions less likely; the identifiers remain unsuitable for cryptography.
Starting with PHP 7.2, tls:// stream connections advertise support for TLS up to 1.2 by default, and the ssl:// scheme becomes an alias for tls://.
hash_hmac() and hash_pbkdf2() now reject non-cryptographic hashes, PHP 7.1.2 adds hash_hkdf() for key derivation, and PHP 7.2 bundles libsodium.
OpenSSL changes in PHP 7: ALPN support, crypto meta data through stream_get_meta_data(), removed TLS context options, and no more SSLv2 as of PHP 7.1.
PHP 7 adds random_bytes() and random_int() as an easy to use and portable cryptographically secure pseudo-random number generator (CSPRNG).
PHP 7.3 introduces the syslog.filter configuration option with the values no-ctrl, ascii, all, and raw for filtering messages sent with syslog().
With PHP 7.3, session_set_cookie_params(), setcookie(), and setrawcookie() accept an options array that includes the samesite attribute against CSRF.
eval
CompileError
error_log
error_clear_last()
E_STRICT
__toString()
JSON_THROW_ON_ERROR
catch
object
Iterable
array
ini
Countable
is_countable()
spl_object_id()
get_mangled_object_vars()
gettype
is_object()
list()
ArrayAccess
array_column()
array_merge()
array_merge_recursive()
array_push()
array_unshift()
array_key_first()
array_key_last()
gmp_random_seed()
gmp_binomial()
gmp_kronecker()
gmp_lcm()
gmp_perfect_power()
imagecreatefromstring()
mbstring
mb_str_split
Spoofchecker
Normalizer::getRawDecomposition()
mb_chr()
mb_ord()
mb_scrub()
mb_convert_encoding()
preg_quote()
#
preg_replace_callback_array()
preg_replace_callback()
session_start()
dirname()
zip
ignore_user_abort()
stream_isatty()
proc_open()
proc_nice()
getrusage()
memory_limit
fpm_get_status()
getallheaders()
DateTime::createFromImmutable()
mixed