Closed
Description
Description
The following code (script provided by @zeriyoshi):
<?php
$foo = [];
$foo[] = new \Exception(); /* Native interface implemented Native instance */
$foo[] = new class () implements \Stringable /* Native interface implemented User instance */
{
public function __toString(): string
{
return "bar";
}
};
foreach ($foo as $baz) {
for ($i = 0; $i < 64; $i++) {
$baz->__toString();
}
}
Resulted in this output:
Assertion failed: ((execute_data)->opline) >= ((execute_data)->func)->op_array.opcodes && ((execute_data)->opline) < ((execute_data)->func)->op_array.opcodes + ((execute_data)->func)->op_array.last, file C:\php-sdk\phpdev\vs16\x64\php-src-8.0\ext\opcache\jit/zend_jit_trace.c, line 7679
php-src/ext/opcache/jit/zend_jit_trace.c
Lines 7678 to 7679 in 789a37f
But I expected this output instead:
PHP Version
= PHP-8.0
Operating System
Windows, maybe others as well