PHP doesn&#x27;t have tree-shaking, as it isn&#x27;t compiled, but it does have autoloading: the source code files for classes are only loaded from disk when they&#x27;re instantiated. This is probably similarly beneficial.