Description
The following code:
<?php
$obj = (object)['a' => 1, 'b' => 2];
$ao = new ArrayObject($obj);
$arr = (array) $obj;
debug_zval_dump($arr);
Resulted in this output: the refcount is 4 in non-JIT.
array(2) refcount(4){
["a"]=>
int(1)
["b"]=>
int(2)
}
while is 3 in JIT
array(2) refcount(3){
["a"]=>
int(1)
["b"]=>
int(2)
}
PHP Version
nightly
Operating System
ubuntu 22.04