3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a', INT_MAX => 'b', 'a' => 'b','c'); unset($a[4]); unset($a[5]); $a[4] = 'clement'; array_push($a, 'c'); var_dump($a);
based on UQ8SZ
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant INT_MAX - assumed 'INT_MAX' in /in/un07Y on line 2 array(6) { [0]=> string(1) "a" ["INT_MAX"]=> string(1) "b" ["a"]=> string(1) "b" [1]=> string(1) "c" [4]=> string(7) "clement" [5]=> string(1) "c" }
Output for hhvm-3.10.0
Notice: Use of undefined constant INT_MAX - assumed 'INT_MAX' in /in/un07Y on line 6 array(6) { [0]=> string(1) "a" ["INT_MAX"]=> string(1) "b" ["a"]=> string(1) "b" [1]=> string(1) "c" [4]=> string(7) "clement" [5]=> string(1) "c" }