3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'countryid' => 38 ), array( 'currency' => 'GBP', 'countryid' => 109 ), array( 'currency' => 'GBP', 'countryid' => 136 ), array( 'currency' => 'GBP', 'countryid' => 94 ), array( 'currency' => 'GBP') ); $map = array_combine(array_map(function($v){ return $v['countryid']; }, $arr), $arr); print_r($map);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "countryid" in /in/354Sg on line 11 Array ( [38] => Array ( [countryid] => 38 ) [109] => Array ( [currency] => GBP [countryid] => 109 ) [136] => Array ( [currency] => GBP [countryid] => 136 ) [94] => Array ( [currency] => GBP [countryid] => 94 ) [] => Array ( [currency] => GBP ) )

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