3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_keys(array(100000000000000000000000000000000=>0, 1, 2, 3, 4)));
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
array(5) { [0]=> int(-8809040871136690176) [1]=> int(0) [2]=> int(1) [3]=> int(2) [4]=> int(3) }
Output for 5.3.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
array(5) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) }
Output for 4.3.0 - 5.2.17
array(5) { [0]=> int(-9223372036854775808) [1]=> int(0) [2]=> int(1) [3]=> int(2) [4]=> int(3) }