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($a);
Output for 7.0.0 - 7.2.0
array(20) { ["ryans"]=> int(100) ["kkirigaya_"]=> int(200) ["DJudy22"]=> int(201) ["Shrekt"]=> int(2001) ["SuperJeksun"]=> int(2600) ["ParadoxWolf"]=> int(2600) ["Fayettemat"]=> int(2800) ["eliassurber"]=> int(3100) ["DarkNom"]=> int(3126) ["JTMinecraft2012"]=> int(3200) ["Jam40e"]=> int(3725) ["Pig"]=> int(4725) ["CoffeeGopher"]=> int(5126) ["Plato"]=> int(5626) ["adr427"]=> int(5826) ["Pr0totype2"]=> int(5826) ["Fryxite"]=> int(6126) ["Lie"]=> int(7826) [4096]=> int(7826) ["IDE"]=> int(7826) }
Output for 5.4.2 - 5.6.28
array(20) { ["ryans"]=> int(100) ["kkirigaya_"]=> int(200) ["DJudy22"]=> int(201) ["Shrekt"]=> int(2001) ["SuperJeksun"]=> int(2600) ["ParadoxWolf"]=> int(2600) ["Fayettemat"]=> int(2800) ["eliassurber"]=> int(3100) ["DarkNom"]=> int(3126) ["JTMinecraft2012"]=> int(3200) ["Jam40e"]=> int(3725) ["Pig"]=> int(4725) ["CoffeeGopher"]=> int(5126) ["Plato"]=> int(5626) ["Pr0totype2"]=> int(5826) ["adr427"]=> int(5826) ["Fryxite"]=> int(6126) ["IDE"]=> int(7826) [4096]=> int(7826) ["Lie"]=> int(7826) }
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/6AV0i on line 2
Process exited with code 255.