# PHP in 2021

> Clean Markdown view of GeekNews topic #4086. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4086](https://news.hada.io/topic?id=4086)
- GeekNews Markdown: [https://news.hada.io/topic/4086.md](https://news.hada.io/topic/4086.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-04-17T09:59:21+09:00
- Updated: 2021-04-17T09:59:21+09:00
- Original source: [stitcher.io](https://stitcher.io/blog/php-in-2021)
- Points: 4
- Comments: 1

## Topic Body

- PHP 8 이 출시되었고 계속 성능 개선중

ㅤ→ JIT 도 추가됨

- 올 연말쯤 8.1 출시 예정

ㅤ→ enum 도입

ㅤ→ Async PHP 를 위한 Fibers (Coroutine, 그린 쓰레드) 추가

ㅤ→ never 타입 추가 : exit 등으로 프로그램 플로우가 종료되는 함수를 명확히 표시. 정적 분석 도구에 도움 될 것

ㅤㅤPhpStorm 이 Psalm / PhpStan 같은 정적 분석도구를 추가

- 2020/10 에 Composer 2.0 출시 : UX 및 성능을 엄청 개선

- 최근 PHP 언어에 이미 추가되거나 될 것들

ㅤ→ Enums

ㅤ→ Fibers

ㅤ→ Attributes

ㅤ→ Named Arguments

ㅤ→ Match

ㅤ→ Constructor Property Promotion

ㅤ→ Short closures

ㅤ→ Null coalescing operator

ㅤ→ Traits

ㅤ→ Typed properties

ㅤ→ Spread operator

ㅤ→ The JIT

ㅤ→ FFI

ㅤ→ Return type declarations

ㅤ→ Generators

## Comments



### Comment 4900

- Author: xguru
- Created: 2021-04-17T09:59:27+09:00
- Points: 1

이 친구가 매년 한번씩 이 글을 쓰는데, 2019년엔 긱뉴스에 올리고, 2020은 빼먹었네요 ㅎㅎ

- PHP in 2019 https://news.hada.io/topic?id=92

- PHP in 2020 https://stitcher.io/blog/php-in-2020
