3v4l.org

run code in 300+ PHP versions simultaneously
<?php // string, null, bool, float, largest specified previous index function isIndexedArray($array) { return !(bool)count(array_filter(array_keys($array), 'is_string')); } print (isIndexedArray(null) === false);

preferences:
42.03 ms | 402 KiB | 5 Q