#PHP usage of eval() has dropped from 23% to 13% since 2018.
And there are almost no more reasons to use it anywhere in the code: any feature it enabled are now an actual feature.
There might be one last usage for it, but you won't need it.
commit 0657991
i recently removed the last usage of
eval() in a legacy codebase. i didn't need it.Most of the remaining 13% is probably ancient PHP 5 migration shims, legacy template compilers, or old test mocking libraries nobody has touched since 2016.