Kenta Usami

41 Followers
45 Following
229 Posts
Emacs Lisper. A maintainer of Emacs PHP Mode. I'm work at pixiv Inc.
GitHubhttps://github.com/zonuexe
By the way, the original article was published in 2017 and compared PHP 5.6 instead of 7 using an inappropriate benchmarking method, so I don't think it's worth reading. https://qiita.com/kapitan/items/47d89449f23bc7f7c9bb
PHPを少しでも速く動かしたい - Qiita

色々調べると先人方が調べてくれています。 とはいえ、情報が散らばってるので個人的にまとめたかったのと 現状どのくらい効果あるのか知りたいので遊んでみる。 どのくらい効果あるのか検証は100回〜1000回計測での平均 PHPは5.6.30 VMで動かしてるからちょっと遅い^^...

Qiita
These are certainly interesting, but from the perspective of solving bottlenecks, it's pointless to even consider them, and they don't seem to be hotspots in the PHP interpreter.
I saw a user post claiming there was a pattern that was faster than the native is_bool() (ZEND_TYPE_CHECK), so I put a comment about a quick benchmark in a Gist. https://gist.github.com/zonuexe/008fdbdff728a0ec3a45b0c5f6788c22
is_bool() benchmark

is_bool() benchmark. GitHub Gist: instantly share code, notes, and snippets.

Gist
創作プラットフォームにおけるコンピュータサイエンス vs 俺たち

2025年10月13日に東京都台東区の浅草橋ヒューリックホール&カンファレンスで開催された『traPavilion』でスポンサーセッション(10分)として発表しました。

tadsan's slide deck
Real World PHP in pixiv改

「ふつうのPHP」がpixivになるまで

Recursive calls are a poor practice for PHP, but it does remove one of the justifications for the existence of references.
I wrote about the Closure::getCurrent() method, which was added to the master branch of php without an RFC to allow anonymous recursion.
https://qiita.com/tadsan/items/479b0ddc7b899d378d75
PHP 8.5でクロージャの無名再帰ができるよー!(たぶん) - Qiita

発端はこのissueです。 うおー無名再帰! いいですね! 雑に訳してみましょう。 Named anonymous functions (名前付き無名関数) #1816 概要 JavaScriptは無名関数の名付けをサポートしており、周囲のスコープを汚染するこ...

Qiita

🚀 Calling All PHPUnit Users!

Stay ahead of the curve with my new bimonthly PHPUnit newsletter!

Receive the latest features and improvements in PHPUnit straight to your inbox, together with expert tips to help you maximise your testing workflow and write better tests.

You will also receive updates on free and paid online events, from webinars to workshops, focused on PHPUnit and related topics.

Join a community of passionate developers by subscribing now:

https://t8cbf4509.emailsys1a.net/275/973/33ad04f4be/subscribe/form.html?_g=1752156344

Newsletter-Anmeldung

Mit unserem Newsletter verpassen Sie keine Neuigkeiten mehr. Jetzt anmelden und auf dem Laufenden bleiben!

I noticed that Vincent replaced my PHPStan PR which had been stagnant for a long time. Thanks so much @misterdeviling ! https://github.com/phpstan/phpstan-src/pull/3156
Improve the return type of array_map() for constant arrays by zonuexe · Pull Request #3156 · phpstan/phpstan-src

resolve phpstan/phpstan#11180

GitHub