3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php defined('SORT_FLAG_CASE') or define('SORT_FLAG_CASE', 8); $arr = array('foo' => 2,'Bar' => 1, 'bar' => 3, 'a' => 0); ksort($arr, SORT_FLAG_CASE); var_dump($arr);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { ["Bar"]=> int(1) ["a"]=> int(0) ["bar"]=> int(3) ["foo"]=> int(2) }