3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [ 'Lie' => 7826, 'adr427' => 5826, 'Jam40e' => 3725, 'Fryxite' => 6126, 'CoffeeGopher' => 5126, 'eliassurber' => 3100, 'JTMinecraft2012' => 3200, 'Fayettemat' => 2800, 'Pr0totype2' => 5826, 'kkirigaya_' => 200, 'DJudy22' => 201, 'DarkNom' => 3126, 'Shrekt' => 2001, 'SuperJeksun' => 2600, 'Pig' => 4725, 'ryans' => 100, 'Plato' => 5626, 'ParadoxWolf' => 2600, 4096 => 7826, 'IDE' => 7826, ]; asort($a); var_dump(array_reverse($a));
based on 6AV0i
Output for 7.0.0 - 7.2.0
array(20) { ["IDE"]=> int(7826) [0]=> int(7826) ["Lie"]=> int(7826) ["Fryxite"]=> int(6126) ["Pr0totype2"]=> int(5826) ["adr427"]=> int(5826) ["Plato"]=> int(5626) ["CoffeeGopher"]=> int(5126) ["Pig"]=> int(4725) ["Jam40e"]=> int(3725) ["JTMinecraft2012"]=> int(3200) ["DarkNom"]=> int(3126) ["eliassurber"]=> int(3100) ["Fayettemat"]=> int(2800) ["ParadoxWolf"]=> int(2600) ["SuperJeksun"]=> int(2600) ["Shrekt"]=> int(2001) ["DJudy22"]=> int(201) ["kkirigaya_"]=> int(200) ["ryans"]=> int(100) }
Output for 5.4.2 - 5.6.28
array(20) { ["Lie"]=> int(7826) [0]=> int(7826) ["IDE"]=> int(7826) ["Fryxite"]=> int(6126) ["adr427"]=> int(5826) ["Pr0totype2"]=> int(5826) ["Plato"]=> int(5626) ["CoffeeGopher"]=> int(5126) ["Pig"]=> int(4725) ["Jam40e"]=> int(3725) ["JTMinecraft2012"]=> int(3200) ["DarkNom"]=> int(3126) ["eliassurber"]=> int(3100) ["Fayettemat"]=> int(2800) ["ParadoxWolf"]=> int(2600) ["SuperJeksun"]=> int(2600) ["Shrekt"]=> int(2001) ["DJudy22"]=> int(201) ["kkirigaya_"]=> int(200) ["ryans"]=> int(100) }
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/5TKWg on line 2
Process exited with code 255.