opcache_jit_blacklist
opcache_jit_blacklist
Blacklists a function from being JIT compiled
void **opcache_jit_blacklist** Closure $closure
This function blacklists a particular function from being JIT compiled when Tracing JIT is in use.
The function is specified using a .
Closure
Waarschuwing: > Any parts of the function that were already JIT compiled remain unaffected and will still be JIT compiled.
closureThe function to blacklist, represented as a first class callable.
It is also possible to pass an anonymous function,
in which case the anonymous function itself is blacklisted.
return.void
**Voorbeeld:
basic example
**
<?php
function foo() {
$x = 1;
$x += 0;
++$x;
var_dump($x);
}
opcache_jit_blacklist(foo(...));
foo();
?>
opcache_invalidate``opcache_reset