We can get Drupal 8 version using Drush also.
drush st as a shortcut (alias) for
drush status
Output:
drush st
Drupal version : 8.8.0
Site URI : http://default
DB driver : pgsql
DB hostname : localhost
DB port : 5432
DB username : postgres
DB name : prod
Database : Connected
Drupal bootstrap : Successful
Default theme : wealth
Admin theme : seven
PHP binary : E:\wamp64\bin\php\php7.3.21\php.exe
PHP config : E:\wamp64\bin\php\php7.3.21\php.ini
PHP OS : WINNT
Drush script : C:\Users\USERNAME\drush9\vendor\drush\drush\drush
Drush version : 9.7.2
Drush temp : C:\Users\AMOLBH~1\AppData\Local\Temp
Drush configs : C:/Users/Amol
Bhavsar/drush9/vendor/drush/drush/drush.yml
Install profile : minimal
Drupal root : E:\wamp64\www\drupal_installation
Site path : sites/default
Files, Public : sites/default/files
Files, Private : private
Files, Temp : /tmp