3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; $a['R3']['C3'] = 66; $a['R1']['C1'] = 123; $a['R2']['C2'] = 423523; $a['R1']['C2'] = 3; arsort($a); print_r ($a);
based on CtAZE
Output for 7.0.0 - 7.2.0
Array ( [R1] => Array ( [C1] => 123 [C2] => 3 ) [R3] => Array ( [C3] => 66 ) [R2] => Array ( [C2] => 423523 ) )
Output for 5.4.0 - 5.6.28
Array ( [R1] => Array ( [C1] => 123 [C2] => 3 ) [R2] => Array ( [C2] => 423523 ) [R3] => Array ( [C3] => 66 ) )
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/pTF5E on line 3
Process exited with code 255.