3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'foo=val&bar[]=1&bar[]=2&bar[]=3&baz[key1]=val1&baz[key2]=val2&baz[key3]=val3'; // this emulates how $_POST and $_GET are decoded parse_str($str, $arr); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["foo"]=> string(3) "val" ["bar"]=> array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" } ["baz"]=> array(3) { ["key1"]=> string(4) "val1" ["key2"]=> string(4) "val2" ["key3"]=> string(4) "val3" } }

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:
47.21 ms | 402 KiB | 8 Q