3v4l.org

run code in 300+ PHP versions simultaneously
<?php defined('SORT_FLAG_CASE') or define('SORT_FLAG_CASE', 8); echo 'SORT_FLAG_CASE : '.SORT_FLAG_CASE."\n"; $arr = array('foo' => 2,'Bar' => 1, 'bar' => 3, 'a' => 0); ksort($arr, SORT_STRING|SORT_FLAG_CASE); var_dump($arr);

preferences:
40.23 ms | 402 KiB | 5 Q