3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['dfg','ert','12aa','1aa','10aa','1aa','aa','0aa']; sort($a, SORT_NUMERIC); var_export($a);
based on r6G8K
Output for 7.0.0 - 7.2.0
array ( 0 => 'dfg', 1 => 'ert', 2 => 'aa', 3 => '0aa', 4 => '1aa', 5 => '1aa', 6 => '10aa', 7 => '12aa', )
Output for 5.4.1 - 5.6.21
array ( 0 => 'aa', 1 => 'dfg', 2 => '0aa', 3 => 'ert', 4 => '1aa', 5 => '1aa', 6 => '10aa', 7 => '12aa', )
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ALDGa on line 2
Process exited with code 255.