3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( [ "product_id" => "1138", "product_image" => "/resources/medias/shop/products/shop-6500720--1.png", "product_sku" => "6500722" ], [ "product_id" => "1144", "product_image" => "/resources/medias/shop/products/shop-6501041--1.png", "product_sku" => "6501046" ], [ "product_id" => "113", "product_image" => "/resources/medias/shop/products/shop-6294909--1.png", "product_sku" => "6294915" ] ); $new = array_column($array, "product_id", "product_sku"); Var_dump($new);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [6500722]=> string(4) "1138" [6501046]=> string(4) "1144" [6294915]=> string(3) "113" }

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:
25.8 ms | 405 KiB | 5 Q