3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(~PHP_INT_MAX => 42); var_dump($a); var_dump( array_pop($a) ); var_dump($a); $a[] = 37; var_dump($a);
Output for 4.4.5 - 4.4.9, 5.2.1 - 7.1.0
array(1) { [-9223372036854775808]=> int(42) } int(42) array(0) { } array(1) { [0]=> int(37) }
Output for 4.4.0 - 4.4.4, 5.0.5 - 5.2.0
array(1) { [-9223372036854775808]=> int(42) } int(42) array(0) { } array(1) { [-1]=> int(37) }
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/h6tNn on line 2 array(1) { ["�����������"]=> int(42) } int(42) array(0) { } array(1) { [0]=> int(37) }