Description
The following code:
<?php
class C {
public stdClass $a = FOO;
}
$reflector = new ReflectionProperty(C::class, 'a');
define('FOO', new stdClass);
new C;
echo $reflector;
Resulted in this output without JIT:
Property [ public stdClass $a = object(stdClass) ]
Resulted in this output with JIT (-d "opcache.enable=1" -d "opcache.enable_cli=1" -d "opcache.jit=tracing"):
Property [ public stdClass $a = FOO ]
PHP Version
Operating System
No response