3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stat = array ( 'direct' => array ( 'listing' => array ( 0 => array ( 'text' => '1', 'clicks' => 1, 'ctr' => 100, 'price' => 1, 'budget' => 1, ), 1 => array ( 'text' => '2', 'clicks' => 2, 'ctr' => 200, 'price' => 2, 'budget' => 2, ), 2 => array ( 'text' => '3', 'clicks' => 3, 'ctr' => 300, 'price' => 3, 'budget' => 3, ), 3 => array ( 'text' => '1', 'clicks' => 1, 'ctr' => 100, 'price' => 1, 'budget' => 1, ), 4 => array ( 'text' => '2', 'clicks' => 2, 'ctr' => 200, 'price' => 2, 'budget' => 2, ), 5 => array ( 'text' => '3', 'clicks' => 3, 'ctr' => 300, 'price' => 3, 'budget' => 3, ), 6 => array ( 'text' => '1', 'clicks' => 1, 'ctr' => 100, 'price' => 1, 'budget' => 1, ), 7 => array ( 'text' => '2', 'clicks' => 2, 'ctr' => 200, 'price' => 2, 'budget' => 2, ), 8 => array ( 'text' => '3', 'clicks' => 3, 'ctr' => 300, 'price' => 3, 'budget' => 3, ), ), ), 'market' => array ( 'listing' => array ( ), ), ); print_r($stat['direct']['listing']); sort($stat['direct']['listing']); print_r($stat['direct']['listing']);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [text] => 1 [clicks] => 1 [ctr] => 100 [price] => 1 [budget] => 1 ) [1] => Array ( [text] => 2 [clicks] => 2 [ctr] => 200 [price] => 2 [budget] => 2 ) [2] => Array ( [text] => 3 [clicks] => 3 [ctr] => 300 [price] => 3 [budget] => 3 ) [3] => Array ( [text] => 1 [clicks] => 1 [ctr] => 100 [price] => 1 [budget] => 1 ) [4] => Array ( [text] => 2 [clicks] => 2 [ctr] => 200 [price] => 2 [budget] => 2 ) [5] => Array ( [text] => 3 [clicks] => 3 [ctr] => 300 [price] => 3 [budget] => 3 ) [6] => Array ( [text] => 1 [clicks] => 1 [ctr] => 100 [price] => 1 [budget] => 1 ) [7] => Array ( [text] => 2 [clicks] => 2 [ctr] => 200 [price] => 2 [budget] => 2 ) [8] => Array ( [text] => 3 [clicks] => 3 [ctr] => 300 [price] => 3 [budget] => 3 ) ) Array ( [0] => Array ( [text] => 1 [clicks] => 1 [ctr] => 100 [price] => 1 [budget] => 1 ) [1] => Array ( [text] => 1 [clicks] => 1 [ctr] => 100 [price] => 1 [budget] => 1 ) [2] => Array ( [text] => 1 [clicks] => 1 [ctr] => 100 [price] => 1 [budget] => 1 ) [3] => Array ( [text] => 2 [clicks] => 2 [ctr] => 200 [price] => 2 [budget] => 2 ) [4] => Array ( [text] => 2 [clicks] => 2 [ctr] => 200 [price] => 2 [budget] => 2 ) [5] => Array ( [text] => 2 [clicks] => 2 [ctr] => 200 [price] => 2 [budget] => 2 ) [6] => Array ( [text] => 3 [clicks] => 3 [ctr] => 300 [price] => 3 [budget] => 3 ) [7] => Array ( [text] => 3 [clicks] => 3 [ctr] => 300 [price] => 3 [budget] => 3 ) [8] => Array ( [text] => 3 [clicks] => 3 [ctr] => 300 [price] => 3 [budget] => 3 ) )