{
    "schema_version": 1,
    "license": "CC BY 4.0",
    "citation": "Kuzeyhan Demir, ASAMB, array_sum vs a PHP foreach accumulator, measurement run 2026-07-22T15:23:56+00:00",
    "environment": {
        "generated_at": "2026-07-22T15:23:56+00:00",
        "php_version": "8.4.23",
        "php_sapi": "cli",
        "os": "Linux 4.18.0-553.85.1.el8_10.x86_64",
        "architecture": "x86_64",
        "cpu": "AMD EPYC-Rome Processor",
        "memory": "15.02 GiB host total",
        "opcache_cli": "0",
        "memory_limit": "1024M",
        "extensions": [
            "json",
            "openssl",
            "zlib",
            "mbstring",
            "pdo_sqlite"
        ],
        "timezone": "UTC",
        "clock": "hrtime(true)",
        "rounds": 7
    },
    "study": {
        "slug": "numeric-aggregation",
        "iterations_per_sample": 180,
        "rounds": 7,
        "winner": "array_sum",
        "slowest": "foreach accumulator",
        "spread_percent": 356.25,
        "variants": {
            "array_sum": {
                "median_ns_per_op": 9471.46,
                "p25_ns_per_op": 9458.19,
                "p75_ns_per_op": 9899.55,
                "ops_per_second": 105580.39,
                "samples_ns_per_op": [
                    9471.46,
                    9456.16,
                    9434.33,
                    9749.21,
                    9460.22,
                    10049.88,
                    10206.23
                ],
                "extra": []
            },
            "foreach accumulator": {
                "median_ns_per_op": 43213.3,
                "p25_ns_per_op": 41559.52,
                "p75_ns_per_op": 53404.72,
                "ops_per_second": 23141.02,
                "samples_ns_per_op": [
                    53594.58,
                    55233.49,
                    53214.87,
                    40591.59,
                    41166.89,
                    43213.3,
                    41952.15
                ],
                "extra": []
            }
        }
    }
}