When does array_map preserve the input array keys?

from Array functions
PHP 8.3.33 intermediate 1 min

When does array_map preserve the input array keys?

Report an error