3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[9999999999999999999999] = 'a'; $a['9999999999999999999999'] = 'b'; print_r($a); foreach ($a as $x => $y) { echo gettype($x); }
based on ecHnX
Output for 5.5.0 - 7.2.0
Array ( [1864712049423024128] => a [9999999999999999999999] => b ) integerstring
Output for 5.3.0 - 5.4.45
Array ( [0] => a [9999999999999999999999] => b ) integerstring
Output for 4.3.0 - 5.2.17
Array ( [-9223372036854775808] => a [9999999999999999999999] => b ) integerstring