3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ["/?dfs1=frgs1","/?dfs2=frgs2","/?dfs3=frgs3"]; $matches = preg_grep("/\/\?(.*)\=(.*)/", $a); $fmatchs = []; foreach($matches as $match){ $mtchs = explode("=", $match); print($match); //print_r($mtchs); foreach($mtchs as $v){ echo "dddd".$v[0]; print_r($v); $k = str_replace("/?", "", $v[0]); $fmatchs[$k] = $v[1]; } } print_r($fmatchs);
based on OL9M3

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Array change keys
/?dfs1=frgs1dddd//?dfs1ddddffrgs1/?dfs2=frgs2dddd//?dfs2ddddffrgs2/?dfs3=frgs3dddd//?dfs3ddddffrgs3Array ( [/] => ? [f] => r )
Output for Lexical anon
/?dfs1=frgs1dddd//?dfs1ddddffrgs1/?dfs2=frgs2dddd//?dfs2ddddffrgs2/?dfs3=frgs3dddd//?dfs3ddddffrgs3Array ( [/] => ? [f] => r )
Output for Typed properties
/?dfs1=frgs1dddd//?dfs1ddddffrgs1/?dfs2=frgs2dddd//?dfs2ddddffrgs2/?dfs3=frgs3dddd//?dfs3ddddffrgs3Array ( [/] => ? [f] => r )

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