3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'data[45][1][2017-01-14]=foo&data[45][1][2017-01-15]=bar&data[46][8][2017-01-15]=baz'; parse_str($str, $arr); var_dump($arr); foreach ($arr['data'] as $level1Key => $level2Values) { foreach ($level2Values as $level2Key => $level3Values) { foreach ($level3Values as $level3Key => $value) { echo "{$level1Key}/{$level2Key}/{$level3Key} = {$value}\n"; } } }
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["data"]=> array(2) { [45]=> array(1) { [1]=> array(2) { ["2017-01-14"]=> string(3) "foo" ["2017-01-15"]=> string(3) "bar" } } [46]=> array(1) { [8]=> array(1) { ["2017-01-15"]=> string(3) "baz" } } } } 45/1/2017-01-14 = foo 45/1/2017-01-15 = bar 46/8/2017-01-15 = baz

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