3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $assoc = array( "a" => 1, "b" => 0, 0 => 0 ); function is_assoc($in_array){ ksort($in_array); return !ctype_digit( implode('', array_keys($in_array)) ); } echo is_assoc($assoc); ?>
Output for 4.3.0 - 7.1.0
1