Open php.ini, configure the following 2 settings:
; Besides displaying errors, PHP can also log errors to locations such as a location specified by the error_log directive found below.
log_errors=On
; Log errors to specified file, for example:
error_log="D:\xampp\php\logs\php_error_log.log"
Run your PHP scripts again and then check error in the log file.