I just tried to know version of my PHP from windows command typing,
C:\\> php -v
But it is not working. It says php is not recognized as internal or ex
You just need to find out where is your PHP folder.
cd \xampp\php (FOR XAMPP)
cd \wamp\php (FOR WAMP)
php -v
PHP 5.6.11 (cli) (built: Jul 9 2015 20:55:40) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies