3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo implode(":", array_keys(array(9223372036854775806=>0, 1, 2, 3, 4)));
Output for 5.6.28, 7.0.14 - 7.1.0
Warning: Cannot add element to the array as the next element is already occupied in /in/9fnjW on line 2 Warning: Cannot add element to the array as the next element is already occupied in /in/9fnjW on line 2 Warning: Cannot add element to the array as the next element is already occupied in /in/9fnjW on line 2 9223372036854775806:9223372036854775807
Output for 5.2.10 - 5.6.23, 7.0.0 - 7.0.8
9223372036854775806:9223372036854775807
Output for hhvm-3.10.0 - 3.12.0
Warning: Cannot add element to the array as the next element is already occupied Warning: Cannot add element to the array as the next element is already occupied Warning: Cannot add element to the array as the next element is already occupied 9223372036854775806:9223372036854775807
Output for 4.3.0 - 5.2.9
9223372036854775806:9223372036854775807:-9223372036854775808:-9223372036854775807:-9223372036854775806