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) { echo gettype($x); }
based on ZLH22
Output for 5.5.24 - 7.2.0
Array ( [1864712049423024128] => a [9999999999999999999999] => b ) stringstring
Output for 5.3.0 - 5.4.45
Array ( [0] => a [9999999999999999999999] => b ) stringstring
Output for 4.3.0 - 5.2.17
Array ( [-9223372036854775808] => a [9999999999999999999999] => b ) stringstring