3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ " ", // Spaces "?", // Special Character 2, // Integer 3.01, // Float "php", // Lower-case String "pHP", // Camel-case String "Hello", // Title-Case String "123", // String Number true, // Boolean ]; sort($arr, SORT_STRING | SORT_FLAG_CASE); var_dump($arr);

preferences:
24.28 ms | 405 KiB | 5 Q