3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('foo' => 2,'Bar' => 1, 'bar' => 3, 'a' => 0); ksort($arr, SORT_STRING|SORT_FLAG_CASE); var_dump($arr);
Output for 5.4.0 - 7.1.0
array(4) { ["a"]=> int(0) ["bar"]=> int(3) ["Bar"]=> int(1) ["foo"]=> int(2) }
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant SORT_FLAG_CASE - assumed 'SORT_FLAG_CASE' in /in/OIqQe on line 3 array(4) { ["Bar"]=> int(1) ["a"]=> int(0) ["bar"]=> int(3) ["foo"]=> int(2) }