3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<TAG { "messages": [], "status": "success", "surveys": [ { "project_id": 12345678, "name": "Study", "study_type": 1, "cpi": "0.42", "remaining_completes": 104, "conversion_rate": "0.00", "loi": 15, "country": "US", "survey_groups_ids": [], "platform_types": [ "desktop", "ios_tablet", "android_phone", "ios_phone", "android_tablet", "android_kindle", "ios_tablet" ], "match_to_qualify": true, "delay_crediting": false, "tentative_payout": false, "order": { "loi": 15, "ir": 85 }, "is_pmp": false, "entry_link": "https://www.target-servet.com?si=XXX&ssi=SUBID&unique_user_id=user4&hmac=checksum_calculated&offer_id=12345678", "score": null } ], "user_account_status": "good", "quality_score_status": "good" } TAG; var_dump(json_decode($data, true, 512, JSON_THROW_ON_ERROR));
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { ["messages"]=> array(0) { } ["status"]=> string(7) "success" ["surveys"]=> array(1) { [0]=> array(17) { ["project_id"]=> int(12345678) ["name"]=> string(5) "Study" ["study_type"]=> int(1) ["cpi"]=> string(4) "0.42" ["remaining_completes"]=> int(104) ["conversion_rate"]=> string(4) "0.00" ["loi"]=> int(15) ["country"]=> string(2) "US" ["survey_groups_ids"]=> array(0) { } ["platform_types"]=> array(7) { [0]=> string(7) "desktop" [1]=> string(10) "ios_tablet" [2]=> string(13) "android_phone" [3]=> string(9) "ios_phone" [4]=> string(14) "android_tablet" [5]=> string(14) "android_kindle" [6]=> string(10) "ios_tablet" } ["match_to_qualify"]=> bool(true) ["delay_crediting"]=> bool(false) ["tentative_payout"]=> bool(false) ["order"]=> array(2) { ["loi"]=> int(15) ["ir"]=> int(85) } ["is_pmp"]=> bool(false) ["entry_link"]=> string(110) "https://www.target-servet.com?si=XXX&ssi=SUBID&unique_user_id=user4&hmac=checksum_calculated&offer_id=12345678" ["score"]=> NULL } } ["user_account_status"]=> string(4) "good" ["quality_score_status"]=> string(4) "good" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
25.52 ms | 1623 KiB | 4 Q