3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a["100"] = true; echo "\$a is an associative map: "; var_export($a); $keys = array_keys($a); echo "It has these keys: "; var_export($keys); var_dump( is_string($keys[0]) );
Output for 4.3.0 - 7.1.7
$a is an associative map: array ( 100 => true, )It has these keys: array ( 0 => 100, )bool(false)