3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array(PHP_INT_MAX+1 => 'foo'));
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
array(1) { [-9223372036854775808]=> string(3) "foo" }
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/lBm4m on line 2 array(1) { [1]=> string(3) "foo" }