3v4l.org

run code in 300+ PHP versions simultaneously
<?php $payload = json_decode('{ "object": { "id": "price_1SPvRnBP4wK2F43tuyWnIXhE", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1762305819, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, "product": "prod_TMelghXmIUmavW", "recurring": { "interval": "month", "interval_count": 1, "meter": null, "trial_period_days": null, "usage_type": "licensed" }, "tax_behavior": "unspecified", "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 10000, "unit_amount_decimal": "10000" }, "previous_attributes": null }', true); var_dump(sprintf('stripe_evt_%s', hash('sha256', serialize($payload))));
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
string(75) "stripe_evt_551d2e8e9f2b350c03a155f271058d4c483c0f1715c79f861eac89e1a4afd0fc"

preferences:
53.22 ms | 406 KiB | 5 Q