3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( 'ShipOCI/Quality Container Warehouse' => Array ( '0' => Array ( 'id' => 238, 'fk_company_billto' => 7908, 'fk_company_warehouse' => 7181 ), '1' => Array ( 'id' => 17024, 'fk_company_billto' => 1039, 'fk_company_warehouse' => 7181 ), '2' => Array ( 'id' => 0, 'fk_company_billto' => 1039, 'fk_company_warehouse' => 7181 ) ), 'Star Warehouse LLC' => Array ( '0' => Array ( 'id' => 260, 'fk_company_billto' => 1039, 'fk_company_warehouse' => 8964 ), '2' => Array ( 'id' => 238, 'fk_company_billto' => 9149, 'fk_company_warehouse' => 8964 ), '3' => Array ( 'id' => 238, 'fk_company_billto' => 0, 'fk_company_warehouse' => 8964 ), '4' => Array ( 'id' => 238, 'fk_company_billto' => 7333, 'fk_company_warehouse' => 8964 ), '5' => Array ( 'id' => 238, 'fk_company_billto' => 9049, 'fk_company_warehouse' => 8964 ), '6' => Array ( 'id' => 238, 'fk_company_billto' => 7333, 'fk_company_warehouse' => 8964 ), '7' => Array ( 'id' => 238, 'fk_company_billto' => 9049, 'fk_company_warehouse' => 8964 ), '8' => Array ( 'id' => 238, 'fk_company_billto' => 8217, 'fk_company_warehouse' => 8964 ), '9' => Array ( 'id' => 238, 'fk_company_billto' => 7516, 'fk_company_warehouse' => 8964 ), '10' => Array ( 'id' => 82, 'fk_company_billto' => 1039, 'fk_company_warehouse' => 8964 ) ), 'OCI India Surface Shipping & Transport Systems Pvt. Ltd.' => Array ( '0' => Array ( 'id' => 238, 'fk_company_billto' => 7908, 'fk_company_warehouse' => 7276 ), '1' => Array ( 'id' => 238, 'fk_company_billto' => 9049, 'fk_company_warehouse' => 7276 ) ), 'QA Test Edit' => Array ( '0' => Array ( 'id' => 82, 'fk_company_billto' => 8217, 'fk_company_warehouse' => 8217 ) ) ); array_multisort(array_map('count', $a), SORT_DESC, $a); print_r($a);
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Array ( [Star Warehouse LLC] => Array ( [0] => Array ( [id] => 260 [fk_company_billto] => 1039 [fk_company_warehouse] => 8964 ) [2] => Array ( [id] => 238 [fk_company_billto] => 9149 [fk_company_warehouse] => 8964 ) [3] => Array ( [id] => 238 [fk_company_billto] => 0 [fk_company_warehouse] => 8964 ) [4] => Array ( [id] => 238 [fk_company_billto] => 7333 [fk_company_warehouse] => 8964 ) [5] => Array ( [id] => 238 [fk_company_billto] => 9049 [fk_company_warehouse] => 8964 ) [6] => Array ( [id] => 238 [fk_company_billto] => 7333 [fk_company_warehouse] => 8964 ) [7] => Array ( [id] => 238 [fk_company_billto] => 9049 [fk_company_warehouse] => 8964 ) [8] => Array ( [id] => 238 [fk_company_billto] => 8217 [fk_company_warehouse] => 8964 ) [9] => Array ( [id] => 238 [fk_company_billto] => 7516 [fk_company_warehouse] => 8964 ) [10] => Array ( [id] => 82 [fk_company_billto] => 1039 [fk_company_warehouse] => 8964 ) ) [ShipOCI/Quality Container Warehouse] => Array ( [0] => Array ( [id] => 238 [fk_company_billto] => 7908 [fk_company_warehouse] => 7181 ) [1] => Array ( [id] => 17024 [fk_company_billto] => 1039 [fk_company_warehouse] => 7181 ) [2] => Array ( [id] => 0 [fk_company_billto] => 1039 [fk_company_warehouse] => 7181 ) ) [OCI India Surface Shipping & Transport Systems Pvt. Ltd.] => Array ( [0] => Array ( [id] => 238 [fk_company_billto] => 7908 [fk_company_warehouse] => 7276 ) [1] => Array ( [id] => 238 [fk_company_billto] => 9049 [fk_company_warehouse] => 7276 ) ) [QA Test Edit] => Array ( [0] => Array ( [id] => 82 [fk_company_billto] => 8217 [fk_company_warehouse] => 8217 ) ) )

preferences:
184.57 ms | 419 KiB | 5 Q