3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =array( "20" => Array ( "ean" => "**6900532615069**", "productPrice" => 1140, "productCount" => 50 ), "15" => Array ( "ean" => "**6900532615069**", "productPrice" => 1140, "productCount" => 5 ), "25" => Array ( "ean" => 6900535364122, "productPrice" => 1140, "productCount" => 50 ), "36" => Array ( "ean" => "**6900532615069**", "productPrice" => 1140, "productCount" => 10, )); usort($arr, function ($a, $b) { return $b['productCount'] - $a['productCount']; }); $arr = array_values(array_column($arr, NULL, "ean")); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(3) { ["ean"]=> string(17) "**6900532615069**" ["productPrice"]=> int(1140) ["productCount"]=> int(5) } [1]=> array(3) { ["ean"]=> int(6900535364122) ["productPrice"]=> int(1140) ["productCount"]=> int(50) } }

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