It's worth noting that if you have keys that are long integer, such as '329462291595', they will be considered as such on a 64bits system, but will be of type string on a 32 bits system.for example:<?php $importantKeys = array('329462291595' =>null, 'ZZ291595' => null);foreach(array_keys($importantKeys) as $key){ echo gettype($key)."\n";}?>will return on a 64 bits system:<?php integer string?>but on a 32 bits system:<?php string string?>I hope it will save someone the huge headache I had :)