wp-includes/compat.php:272Compat function to mimic mb_substr().
$stringstring$startint$lengthint|nulloptionalnull$encodingstring|nulloptionalnullstring function mb_substr( $string, $start, $length = null, $encoding = null ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound return _mb_substr( $string, $start, $length, $encoding ); }Introduced in 3.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/compat.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.