Based on the php version, the error log file may be available at separate locations. Here’s a nice way to find out the location of the log file. Execute the following command on your command prompt:
php --info | grep error
The error_log variable will point to the destination of log file.