3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array( array("type"=>"fruit", "price"=>3.50), array("type"=>"milk", "price"=>2.90), array("type"=>"pork", "price"=>5.43), ); $inventory = $data; $time = microtime(true); array_multisort(array_column($inventory, 'price'), SORT_DESC, $inventory); echo microtime(true)-$time; $new = []; $time = microtime(true); foreach($data as $row){ $new[$row['type']] = $row; } ksort($new); echo microtime(true)-$time; print_r($inventory); print_r($new);
based on jXkko
Output for 7.2.6
1.4066696166992E-51.8119812011719E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.2.0
6.9141387939453E-69.0599060058594E-6Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.10
6.9141387939453E-67.8678131103516E-6Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.7
5.9604644775391E-65.0067901611328E-6Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.6
1.0967254638672E-51.1920928955078E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.5
1.1205673217773E-50.00807785987854Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.4
1.5974044799805E-51.6927719116211E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.3
1.1920928955078E-51.1205673217773E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.2
1.2874603271484E-51.215934753418E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.1
3.2186508178711E-51.8119812011719E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.1.0
1.5974044799805E-51.5974044799805E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.20
1.5974044799805E-55.9604644775391E-6Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.19
2.3126602172852E-50.0019099712371826Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.18
1.5020370483398E-50.0031008720397949Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.17
1.5020370483398E-50.0045580863952637Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.16
2.0027160644531E-51.0967254638672E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.15
3.6001205444336E-50.012553930282593Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.14
2.3126602172852E-50.0065338611602783Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.13
1.5974044799805E-50.0043618679046631Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.12
1.8119812011719E-50.0056729316711426Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.11
1.3828277587891E-50.0092201232910156Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.10
1.5020370483398E-50.0057690143585205Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.9
1.5974044799805E-50.0038530826568604Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.8
1.3828277587891E-50.0046911239624023Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.7
2.0980834960938E-50.002039909362793Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.6
1.4066696166992E-50.037353038787842Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.5
1.2874603271484E-50.037907123565674Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.4
1.1205673217773E-51.215934753418E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.3
1.0967254638672E-51.215934753418E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.2
1.0967254638672E-55.9604644775391E-6Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.20, 7.0.1
1.0967254638672E-51.4066696166992E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 7.0.0
1.0967254638672E-56.9141387939453E-6Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for hhvm-3.15.4
4.6968460083008E-52.598762512207E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.30
9.0599060058594E-61.2874603271484E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.29
1.3113021850586E-52.288818359375E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.28
1.0967254638672E-51.3113021850586E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.3, 5.6.27
9.0599060058594E-61.215934753418E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.26
1.215934753418E-51.8119812011719E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.22, 5.6.25
1.0967254638672E-51.5974044799805E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.24
1.3113021850586E-51.5020370483398E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.21, 5.6.23
1.0967254638672E-51.6212463378906E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.19
8.1062316894531E-61.2874603271484E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.1, 5.6.18
1.0013580322266E-51.215934753418E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.6, 5.6.10, 5.6.17
8.1062316894531E-61.1920928955078E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.14, 5.6.16
9.0599060058594E-61.3113021850586E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.15
8.8214874267578E-61.5020370483398E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.13
1.0013580322266E-51.1920928955078E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.12
9.0599060058594E-66.6995620727539E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.2, 5.6.11
8.8214874267578E-61.3113021850586E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.9
9.0599060058594E-61.5974044799805E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.5, 5.6.8
9.0599060058594E-61.0967254638672E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.7
9.0599060058594E-61.1920928955078E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.4
7.8678131103516E-61.1920928955078E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )
Output for 5.6.0
1.0013580322266E-51.7166137695312E-5Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) ) Array ( [fruit] => Array ( [type] => fruit [price] => 3.5 ) [milk] => Array ( [type] => milk [price] => 2.9 ) [pork] => Array ( [type] => pork [price] => 5.43 ) )