3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr =[ [0.577677, '/art and entertainment/visual art and design/painting'], [0.576528, '/technology and computing/internet technology/email'], [0.197858, '/business and industrial/energy/oil/oil and gas prices'], [0.707193, '/sports/wrestling'], [0.506016, '/style and fashion/beauty/cosmetics'], [0.144159, '/food and drink/beverages/alcoholic beverages/cocktails and beer'], ]; uasort($arr,function($a,$b){ return $a['0'] - $b['0']; }); print_R($arr);
Output for 7.0.0 - 7.2.0
Array ( [0] => Array ( [0] => 0.577677 [1] => /art and entertainment/visual art and design/painting ) [1] => Array ( [0] => 0.576528 [1] => /technology and computing/internet technology/email ) [2] => Array ( [0] => 0.197858 [1] => /business and industrial/energy/oil/oil and gas prices ) [3] => Array ( [0] => 0.707193 [1] => /sports/wrestling ) [4] => Array ( [0] => 0.506016 [1] => /style and fashion/beauty/cosmetics ) [5] => Array ( [0] => 0.144159 [1] => /food and drink/beverages/alcoholic beverages/cocktails and beer ) )
Output for 5.4.11 - 5.6.28
Array ( [4] => Array ( [0] => 0.506016 [1] => /style and fashion/beauty/cosmetics ) [5] => Array ( [0] => 0.144159 [1] => /food and drink/beverages/alcoholic beverages/cocktails and beer ) [3] => Array ( [0] => 0.707193 [1] => /sports/wrestling ) [2] => Array ( [0] => 0.197858 [1] => /business and industrial/energy/oil/oil and gas prices ) [1] => Array ( [0] => 0.576528 [1] => /technology and computing/internet technology/email ) [0] => Array ( [0] => 0.577677 [1] => /art and entertainment/visual art and design/painting ) )
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/KZ644 on line 3
Process exited with code 255.