3v4l.org

run code in 300+ PHP versions simultaneously
<?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]; $k = str_replace("/?", "", $v[0]); $fmatchs[$k] = $v[1]; } } print_r($fmatchs);
Output for git.master, git.master_jit, rfc.property-hooks
/?dfs1=frgs1Array ( [0] => /?dfs1 [1] => frgs1 ) dddd/ddddf/?dfs2=frgs2Array ( [0] => /?dfs2 [1] => frgs2 ) dddd/ddddf/?dfs3=frgs3Array ( [0] => /?dfs3 [1] => frgs3 ) dddd/ddddfArray ( [/] => ? [f] => r )

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:
55.11 ms | 401 KiB | 8 Q