3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array ( '0' => array ( '0' => array ( 'companyname' => 'Insurance Company' ) ), '2' => array ( '0' => array ( 'companyname' => 'pnsurance Company' ) ), '3' => array ( '0' => array ( 'companyname' => 'Life Insurance Company and Policy' ) ) ); arsort($arr); print_r($arr);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [2] => Array ( [0] => Array ( [companyname] => pnsurance Company ) ) [3] => Array ( [0] => Array ( [companyname] => Life Insurance Company and Policy ) ) [0] => Array ( [0] => Array ( [companyname] => Insurance Company ) ) )