In PHP <7.2 you can create arrays that can no longer be accessed properly:
You can do some things with it.
The root of all evil is in bug # 61655 . As a workaround, you can turn the botched array back into an object and cast it in a different way:
Or you can do without numeric strings as keys - PHP casted every numeric string as key of an associative array as integer anyway.