1--TEST--
2Occupied next element
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10$float = 100000000000000000000000000000000000000;
11$string_float= PHP_INT_MAX;
12$a = [$float => 'a', $string_float => 'b', 'c', 'd'];
13?>
14--EXPECTF--
15Deprecated: Implicit conversion from float 1.0E+38 to int loses precision in %sarray_elem_002.php on line 4
16
17Fatal error: Uncaught Error: Cannot add element to the array as the next element is already occupied in %sarray_elem_002.php:4
18Stack trace:
19#0 {main}
20  thrown in %sarray_elem_002.php on line 4
21