3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $some_array = array (0 => 1, 2 => 1, 'a' => 1, 1 => 1, 'z' => 1, 'x' => 1); ksort($some_array); echo(join("", array_keys($some_array))); $some_array = array (0 => 1, 'x' => 1, 2 => 1, 'a' => 1, 1 => 1, 'z' => 1); ksort($some_array); echo(join("", array_keys($some_array)));
based on qSPjH