3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(); for ($i=1;$i<5;$i++) { $arr[] = array($i => $i+5); } print_r($arr); // Standard asort asort($arr); print_r($tmp);
based on aav1a
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [1] => 6 ) [1] => Array ( [2] => 7 ) [2] => Array ( [3] => 8 ) [3] => Array ( [4] => 9 ) ) Notice: Undefined variable: tmp in /in/lrhFt on line 14
Output for 4.3.0 - 5.0.3
Array ( [0] => Array ( [1] => 6 ) [1] => Array ( [2] => 7 ) [2] => Array ( [3] => 8 ) [3] => Array ( [4] => 9 ) ) Notice: Undefined variable: tmp in /in/lrhFt on line 14