# Slim Framework 2.0 with Php 7.4 Compatability

**URL:** <https://discourse.slimframework.com/t/slim-framework-2-0-with-php-7-4-compatability/3979>\
**Category:** Questions\
**Created:** [March 30, 2020, 10:12am UTC](https://discourse.slimframework.com/t/slim-framework-2-0-with-php-7-4-compatability/3979 "2020-03-30T10:12:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandram97](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@chandram97](https://discourse.slimframework.com/u/chandram97)\
**Post date:** [March 30, 2020, 10:12am UTC](https://discourse.slimframework.com/t/slim-framework-2-0-with-php-7-4-compatability/3979/1 "2020-03-30T10:12:56Z")

</div>

we have developed our application in Slim Framework 2.0 with Php 7.1. Now We are planning to Upgrade Php Version 7.1 to 7.4.

I have checked the Php Migration Documentations, There are many functions and components they have deprecated and they have updated the response/returns of the functions. Please refer the below links for the Php migration documentation from Php7.1 to 7.4 [https://www.php.net/manual/en/migration74.php](https://www.php.net/manual/en/migration74.php) [https://www.php.net/manual/en/migration73.php](https://www.php.net/manual/en/migration73.php) [https://www.php.net/manual/en/migration72.php](https://www.php.net/manual/en/migration72.php)

So can you please check and let me know from Slim Framework 2.0 perspective will there be any impact, if I upgrade to php7.4? Or do I need to Upgrade my Slim Framework as well. if I need to Upgrade my Slim Framework then to which version do I need to upgrade

---

<div class="post-metadata">

**Author:** ![fabswt](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/fabswt/32/1110_2.png) [@fabswt](https://discourse.slimframework.com/u/fabswt)\
**Post date:** [March 30, 2020, 2:49pm UTC](https://discourse.slimframework.com/t/slim-framework-2-0-with-php-7-4-compatability/3979/2 "2020-03-30T14:49:46Z")

</div>

Only way to know is to test… If that’s any help, been running my app on PHP 7.3 for months and on PHP 7.4 since it came out. No problem.

(Now in the process of upgrading to Slim 3 and 4 just to keep up to date.)

---

<div class="post-metadata">

**Author:** ![mimomade](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/mimomade/32/1128_2.png) [@mimomade](https://discourse.slimframework.com/u/mimomade)\
**Post date:** [April 21, 2020, 5:37pm UTC](https://discourse.slimframework.com/t/slim-framework-2-0-with-php-7-4-compatability/3979/3 "2020-04-21T17:37:15Z")

</div>

Are there experiences with Slim v2 and PHP 7.3 or PHP 7.4?

With PHP 7.4 I got messages “get\_magic\_quotes\_gpc deprecated”

---

<div class="post-metadata">

**Author:** ![fabswt](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/fabswt/32/1110_2.png) [@fabswt](https://discourse.slimframework.com/u/fabswt)\
**Post date:** [April 26, 2020, 7:36pm UTC](https://discourse.slimframework.com/t/slim-framework-2-0-with-php-7-4-compatability/3979/4 "2020-04-26T19:36:21Z")

</div>

> [@mimomade](#):
>
> get\_magic\_quotes\_gpc

On a site still running Slim 2, I’m using this:

```
	error_reporting(E_ALL ^ E_DEPRECATED);
	/**
	 * Removing deprecated from the list, because else, on PHP 7.4, we end
	 * up crashing with:
	 * > Function get_magic_quotes_gpc() is deprecated
	 * This is because Slim 2 [and isemail] rely on that function.
	 * TODO(): upgrade to Slim 3/4.
	 */

```

But I’ll be honest with you: I think Slim 4 (and 3) are no fun to use. Took me a long time to update, the documentation is lacking, and the syntax got waaaaay longer. I would consider switching to something else.
