The 100 PHP functions in 2026
exakat.io/the-100-php-functions-in-2026
In this archive from Mar 2015 to Dec 2026





There are so many ways to run PHP code... without #PHP! Recompilation, engine rewrite, using other VM, or languages. It is time to take a step back. https://www.exakat.io/every-road-around-the-zend-engine/

Hi r/PHP, preg_match($pattern, $subject, $matches) has been quietly aging since PHP 3. It still works great, and if you've ever had to explain to a junior dev why the function returns 1, 0, or false, and why the actual result shows up in a variable you passed by reference three arguments ago, you kn...
So, it seems that it is possible to paint oneself in a corner and write an unreachable method. How would you call A::foo() in this code below? Come on, #PHP, there must be something here. #phptip #phptrick <?ph
We hear a lot about coding PHP with AI, and PHP calling remote API to query them. And there are tools maturing quickly in the ecosystem: transformers, home made LLM, FFI libraries and even Rasmus himself creating an extension to run models from within PHP. So much new ideas poping up! [https://www.e...





The sphynx ask you a #PHP riddle: make this code running. This compiles, so you can only add more code to make it work. I asked 5 AI, 2 succeeded, 3 failed. #phptip #phptrick <?php class X { private array $code = []; function foo() { return (string) $this<-code; } } var_dump((new X)->foo());


Is refactoring bool to enum actually makes code less readable? I'm stuck on a refactoring decision that seems to go against all the "clean code" advice, and I need a sanity check. I have methods like this: php private function foo(bool $promoted = true): self { // ... } Everyone, including me, says...
Based on a survey of more than 1900 Open Source projects, here is the top 100 PHP native functions that you will most probably encounter in any given code. Check the insights for extra review. https://www.exakat.io/top-100-php-functions/
How many of them did you know ? https://www.exakat.io/weird-operators-in-php/
We ran some counts on many PHP projects, and got some hard figures on the number of parameters used in methods and functions. Lots of interesting insights. Here are the results : https://www.exakat.io/how-many-parameters-is-too-many/
Exakat is the smart static analysis tool for PHP. It hunts for bugs, helps keep code up to date with PHP version, document your code and measure the rest. Review for version 1.2.1 Download Github [Complete list of Rules](http://exakat.readthedocs.io/en/latest/Re
https://www.exakat.io/largest-php-applications-2018/ Many thanks for the feedback I had from the /r/php channel, I managed to update the top 100 of the largest applications. You can go there and check how your sizeable application is ranking.
I'm searching for the largest PHP applications, whose code is publicly available. I already have a top 10, (spoiler alert) which has moodle at the lowest ranks. Moodle has 2,1 PHP MLOC : do you know larger applications ? drupal, vtiger, bitrix or matacms are all much smaller than that, for example....
End of this list.
Back to top