There is this option in the php.ini configuration file
disable_functions = ; This directive allows you to disable certain
; functions for security reasons. It receives
; a comma separated list of function names.
; This directive is *NOT* affected by whether
; Safe Mode is turned on or off.
Write as
disble_function = phpinfo
Related articles:
Why there is no change in phpinfo() after modifying php.ini
Using PHPINFO to implement PHP configuration statistics process
The difference between Local Value (local variable) and Master Value (main variable) in phpinfo