error reporting is off at php.ini at your system so you need to make enable it to show errors at browser like chrome
error_reporting function can be used to enable the error reporting on , use error_reporting() function like below
error_reporting(1);
to control error reporting level also by error_reporting() function
E_ALL
error_reporting(E_ALL);
By E_ALL error level, it will report all errors to the browser or chrome in your case specifically.
E_NOTICE
error_reporting(E_NOTICE);
By E_NOTICE error level, it will report all notices to the browser or chrome in your case specifically not all errors.
E_ERROR
error_reporting(E_ERROR );
By E_ERROR error level, it will report errors but not notices, warnings, parse errors, etc.. to the browser or chrome in your case specifically.
E_WARNING
error_reporting(E_WARNING );
By E_WARNING error level, it will report warnings but not notices, errors, parse errors, etc.. to the browser or chrome in your case specifically.
E_PARSE
error_reporting(E_PARSE );
By E_WARNING error level, it will report notices but not warning, errors, parse error, etc.. to the browser or chrome in your case specifically.
to report all errors , except parse errors , try this below code
error_reporting(E_ALL & ~ E_PARSE );
the following code can be used for only catching the error and warnings :
error_reporting(E_ERROR | E_WARNING );