Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<opcache_is_script_cached_in_file_cacheopcache_reset>
^OPcache FunctionsLast updated: Mon, 26 Oct 2026

opcache_jit_blacklist

(PHP 8 >= 8.4.0)

opcache_jit_blacklist — Blacklists a function from being JIT compiled

Description

function opcache_jit_blacklist( Closure $closure ): void

This function blacklists a particular function from being JIT compiled when Tracing JIT is in use. The function is specified using a Closure.

Warning

Any parts of the function that were already JIT compiled remain unaffected and will still be JIT compiled.

Parameters

closure

The 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 Values

No value is returned.

Examples

Example #1 opcache_jit_blacklist() basic example

<?php
function foo() {
    $x = 1;
    $x += 0;
    ++$x;
    var_dump($x);
}
opcache_jit_blacklist(foo(...));
foo();
?>

See Also


<opcache_is_script_cached_in_file_cacheopcache_reset>
^OPcache FunctionsLast updated: Mon, 26 Oct 2026