3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $m = range(85,110); foreach($m as $val){ $key = $val."00000000000000000"; $a[$key] = $key; } print_r($a); $b["9900000000000000000"]="1"; print_r($b); var_dump(isset($b["-8546744073709551616"])); var_dump(isset($b["9900000000000000000"])); ?>
Output for 4.3.0 - 5.2.9, 5.2.15 - 5.2.17, 5.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [8500000000000000000] => 8500000000000000000 [8600000000000000000] => 8600000000000000000 [8700000000000000000] => 8700000000000000000 [8800000000000000000] => 8800000000000000000 [8900000000000000000] => 8900000000000000000 [9000000000000000000] => 9000000000000000000 [9100000000000000000] => 9100000000000000000 [9200000000000000000] => 9200000000000000000 [9300000000000000000] => 9300000000000000000 [9400000000000000000] => 9400000000000000000 [9500000000000000000] => 9500000000000000000 [9600000000000000000] => 9600000000000000000 [9700000000000000000] => 9700000000000000000 [9800000000000000000] => 9800000000000000000 [9900000000000000000] => 9900000000000000000 [10000000000000000000] => 10000000000000000000 [10100000000000000000] => 10100000000000000000 [10200000000000000000] => 10200000000000000000 [10300000000000000000] => 10300000000000000000 [10400000000000000000] => 10400000000000000000 [10500000000000000000] => 10500000000000000000 [10600000000000000000] => 10600000000000000000 [10700000000000000000] => 10700000000000000000 [10800000000000000000] => 10800000000000000000 [10900000000000000000] => 10900000000000000000 [11000000000000000000] => 11000000000000000000 ) Array ( [9900000000000000000] => 1 ) bool(false) bool(true)
Output for 5.2.10 - 5.2.14, 5.3.0 - 5.3.3
Array ( [8500000000000000000] => 8500000000000000000 [8600000000000000000] => 8600000000000000000 [8700000000000000000] => 8700000000000000000 [8800000000000000000] => 8800000000000000000 [8900000000000000000] => 8900000000000000000 [9000000000000000000] => 9000000000000000000 [9100000000000000000] => 9100000000000000000 [9200000000000000000] => 9200000000000000000 [-9146744073709551616] => 9300000000000000000 [-9046744073709551616] => 9400000000000000000 [-8946744073709551616] => 9500000000000000000 [-8846744073709551616] => 9600000000000000000 [-8746744073709551616] => 9700000000000000000 [-8646744073709551616] => 9800000000000000000 [-8546744073709551616] => 9900000000000000000 [10000000000000000000] => 10000000000000000000 [10100000000000000000] => 10100000000000000000 [10200000000000000000] => 10200000000000000000 [10300000000000000000] => 10300000000000000000 [10400000000000000000] => 10400000000000000000 [10500000000000000000] => 10500000000000000000 [10600000000000000000] => 10600000000000000000 [10700000000000000000] => 10700000000000000000 [10800000000000000000] => 10800000000000000000 [10900000000000000000] => 10900000000000000000 [11000000000000000000] => 11000000000000000000 ) Array ( [-8546744073709551616] => 1 ) bool(true) bool(true)