# phacility/xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.

Repository: https://github.com/phacility/xhprof
Canonical: https://ross.abutalabs.com/products/xhprof
Homepage: http://pecl.php.net/package/xhprof
Language: PHP
License: Apache-2.0
License Family: permissive
Last push: 2019-05-28T23:19:41+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6362, "days_push": 2654, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2596, forks 902 (observed 2026-08-28T04:07:03.157270+00:00)

## What it is
XHProf is a lightweight function-level hierarchical profiler for PHP, implemented as a C PHP extension with a PHP-based HTML reporting UI. It reports inclusive/exclusive wall time, CPU time, memory usage, and call counts per function, with diff and aggregate reports and callgraph visualization.

## Use cases
- profile php application performance
- find slow functions in php code
- compare two php profiling runs
- generate callgraph of php execution
- measure memory usage per php function
- profile php 8.4 application

## When to choose
- you need a lightweight, low-overhead function-level profiler for PHP
- you want browser-based reports with diff and callgraph views
- you need profiling support for modern PHP versions including 8.x

## When to avoid
- you need distributed tracing or continuous production profiling rather than on-demand function profiling
- you want a modern UI or integration with APM platforms like Datadog or New Relic
- you need profiling for languages other than PHP

## Facets
- artifact type: library
- maturity: maintenance
- function: benchmarking, monitoring, developer-tools
- domain: developer-tools, performance, web-development
- platform: php, windows, cross-platform
- tags: profiler, php-extension, pecl, callgraph, performance-analysis, hierarchical-profiling, linux, macos

## Member repositories
- phacility/xhprof (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:03.157270+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:22:14.471626+00:00, confidence not recorded.
  - readme: https://github.com/phacility/xhprof (fetched 2026-08-28T04:07:03.157270+00:00, sha cc352069fc15)
  - homepage: http://pecl.php.net/package/xhprof (fetched 2026-08-29T10:04:31.537152+00:00, sha 2d6b9e62fcae)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof (fetched 2026-08-29T10:04:31.546043+00:00, sha d7e2147bfc83)
  - site_page: http://php.net/xhprof (fetched 2026-08-29T10:04:31.547742+00:00, sha eb42733f5412)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof&release=2.3.10 (fetched 2026-08-29T10:04:31.549318+00:00, sha d7e2147bfc83)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof&release=2.3.9 (fetched 2026-08-29T10:04:31.550859+00:00, sha d7e2147bfc83)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof&release=2.3.8 (fetched 2026-08-29T10:04:31.552553+00:00, sha d7e2147bfc83)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof&release=2.3.7 (fetched 2026-08-29T10:04:31.554172+00:00, sha d7e2147bfc83)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof&release=2.3.6 (fetched 2026-08-29T10:04:31.555757+00:00, sha d7e2147bfc83)
  - site_page: http://pecl.php.net/package-changelog.php?package=xhprof&release=2.3.5 (fetched 2026-08-29T10:04:31.557273+00:00, sha d7e2147bfc83)
- Data as of 2026-08-30T08:39:29.467469+00:00.
