PHPackages                             rokety/varprofile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. rokety/varprofile

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

rokety/varprofile
=================

php variables memory profile

05PHP

Since Dec 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/yangxikun/varprofile)[ Packagist](https://packagist.org/packages/rokety/varprofile)[ RSS](/packages/rokety-varprofile/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Description
-----------

[](#description)

php variables memory profile

Require
-------

[](#require)

PHP extension: [varprofile](https://github.com/yangxikun/phpext-learning/tree/master/varprofile)

Parameters
----------

[](#parameters)

`$varName`: 希望dump出来指定变量，例如`classStatic.ComposerAutoloaderInitf38c79c9e5a523ea38f1982421695533.loader`，为空的话dump出所有变量

`$maxDepth`: 限制dump结果的嵌套深度

`$maxItemsPerDepth`: 每一层展示的最大条目数

Usage
-----

[](#usage)

```
