Fix generating array with unsorted keys
Merge branch 'hotfix/4561'

Close #4561
Merge pull request #4566 from ftdebugger/zend_code_value_generator_issue

Fix generating array with unsorted keys
Merge branch 'hotfix/4566' into develop

Forward port #4566