3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'ID=62981155;IT=OV80419674-62981155_1_3;OD=15.4;|ID=62981157;IT=OV80419674-62981157_1_3;OD=3.1;|ID=62981159;IT=OV80419674-62981159_1_3;OD=8.13;|'; $result = []; foreach (explode('|', rtrim(strtr($str, ';', '&'), '|')) as $set) { parse_str($set, $result[]); } echo json_encode($result, JSON_NUMERIC_CHECK | JSON_PRETTY_PRINT);
Output for git.master, git.master_jit, rfc.property-hooks
[ { "ID": 62981155, "IT": "OV80419674-62981155_1_3", "OD": 15.4 }, { "ID": 62981157, "IT": "OV80419674-62981157_1_3", "OD": 3.1 }, { "ID": 62981159, "IT": "OV80419674-62981159_1_3", "OD": 8.13 } ]

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:
30.55 ms | 406 KiB | 5 Q