3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 0=> 'ParamValue', 2 => 'ParamValue', 3 => 'ParamValue', 4 => 'ParamValue', 5 => 'ParamValue'); $keys =array(); Foreach($arr as $key =>$val){ $keys[] = $val . $key; } $result = array_combine($keys, $arr); Var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { ["ParamValue0"]=> string(10) "ParamValue" ["ParamValue2"]=> string(10) "ParamValue" ["ParamValue3"]=> string(10) "ParamValue" ["ParamValue4"]=> string(10) "ParamValue" ["ParamValue5"]=> string(10) "ParamValue" }

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