centos上laravel运行出现错误

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/laravel/public/index.php on line 50" while reading response header from upstream, client

php -v 版本 为PHP 5.6.2 (cli) (built: Apr 14 2017 22:10:19)
laravel 为5.1.4
php这三个插件没有装
OpenSSL PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension

wenjie_zheng
修改的评论也不能少于六个字哦!