Description
The following code:
<?php
function test(){
for($i = 0; $i < 2; $i++){
$a = @[3][$i];
}
}
test();
Resulted in this output:
/php-src/ext/opcache/jit/zend_jit_vm_helpers.c:208: zend_jit_undefined_long_key: Assertion `zval_get_type(&(*(dim))) == 4' failed.
Aborted (core dumped)
To reproduce:
-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=function"
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04