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' ) ) ); rsort($arr,0); print_r($arr);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => Array ( [companyname] => pnsurance Company ) ) [1] => Array ( [0] => Array ( [companyname] => Life Insurance Company and Policy ) ) [2] => Array ( [0] => Array ( [companyname] => Insurance Company ) ) )