# If php is installed php -r "echo php_uname();" # The option -r tells php to execute command from terminal.