3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $some_array = array ( 0 => 1, 3 => 1, 'x' => 1, 2 => 1, 'a' => 1, 'c' => 1, 'b' => 1, 1 => 1, 'z' => 1); ksort($some_array); echo(join("", array_keys($some_array))); echo "\n"; $some_array = array ( 0 => 1, 'x' => 1, 2 => 1, 'a' => 1, 4 => 1, 'c' => 1, 1 => 1, 'z' => 1); ksort($some_array); echo(join("", array_keys($some_array))); echo "\n"; $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 SFLop
Output for 7.0.0 - 7.2.0
0abcxz123 0acxz124 0axz12
Output for 5.3.21 - 5.6.28
0abcxz123 0acxz124 az0x12