# Syntax error, unexpected for App.php file

**URL:** <https://discourse.slimframework.com/t/syntax-error-unexpected-for-app-php-file/2407>\
**Category:** Questions\
**Created:** [May 11, 2018, 8:05am UTC](https://discourse.slimframework.com/t/syntax-error-unexpected-for-app-php-file/2407 "2018-05-11T08:05:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsantaniello](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/lsantaniello/32/679_2.png) [@lsantaniello](https://discourse.slimframework.com/u/lsantaniello)\
**Post date:** [May 11, 2018, 8:05am UTC](https://discourse.slimframework.com/t/syntax-error-unexpected-for-app-php-file/2407/1 "2018-05-11T08:05:07Z")

</div>

Hi @all,  
I installed my php app on the cloud server but the rest api not works.

I always receive this error:

Parse error: syntax error, unexpected ‘{’ in /var/www/html/myapp/vendor/slim/slim/Slim/App.php on line 352

The PHP version installed is 5.4.16. Is it a problem?

Thanks  
Luca

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [May 11, 2018, 10:35am UTC](https://discourse.slimframework.com/t/syntax-error-unexpected-for-app-php-file/2407/2 "2018-05-11T10:35:59Z")

</div>

Yes, the current version of Slim requires PHP \>= 5.5.0.

> <https://github.com/slimphp/Slim/blob/3.x/composer.json#L31>

The last release of PHP 5.4 was nearly three years ago, PHP 5.5 is no longer supported at all. PHP 5.6 and PHP 7.0 are only getting security fixes. So any new projects should be on PHP 7.1 or even better PHP 7.2.

[https://secure.php.net/supported-versions.php](https://secure.php.net/supported-versions.php)
