<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.opcache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.opcache-jit-blacklist.php',
    1 => 'opcache_jit_blacklist',
    2 => 'Blacklists a function from being JIT compiled',
  ),
  'up' => 
  array (
    0 => 'ref.opcache.php',
    1 => 'OPcache Functions',
  ),
  'prev' => 
  array (
    0 => 'function.opcache-is-script-cached-in-file-cache.php',
    1 => 'opcache_is_script_cached_in_file_cache',
  ),
  'next' => 
  array (
    0 => 'function.opcache-reset.php',
    1 => 'opcache_reset',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/opcache/functions/opcache-jit-blacklist.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.opcache-jit-blacklist" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">opcache_jit_blacklist</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">opcache_jit_blacklist</span> &mdash; <span class="dc-title">Blacklists a function from being JIT compiled</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.opcache-jit-blacklist-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>opcache_jit_blacklist</strong></span>(<span class="methodparam">
    
    <span class="type"><a href="class.closure.php" class="type Closure">Closure</a></span> <code class="parameter">$closure</code>
   </span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   This function blacklists a particular function from being JIT compiled when Tracing JIT is in use.
   The function is specified using a <span class="classname"><a href="class.closure.php" class="classname">Closure</a></span>.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="simpara">
    Any parts of the function that were already JIT compiled remain unaffected
    and will still be JIT compiled.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.opcache-jit-blacklist-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt>
     <code class="parameter">closure</code>
    </dt>
    <dd>
     <span class="simpara">
      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.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.opcache-jit-blacklist-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.opcache-jit-blacklist-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 
    <span class="function"><strong>opcache_jit_blacklist()</strong></span>
    basic example
   </strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">foo</span><span style="color: #007700">() {<br />    </span><span style="color: #0000BB">$x </span><span style="color: #007700">= </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />    </span><span style="color: #0000BB">$x </span><span style="color: #007700">+= </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />    ++</span><span style="color: #0000BB">$x</span><span style="color: #007700">;<br />    </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$x</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">opcache_jit_blacklist</span><span style="color: #007700">(</span><span style="color: #0000BB">foo</span><span style="color: #007700">(...));<br /></span><span style="color: #0000BB">foo</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.opcache-jit-blacklist-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.opcache-invalidate.php" class="function" rel="rdfs-seeAlso">opcache_invalidate()</a> - Invalidates a cached script</span></li>
   <li><span class="function"><a href="function.opcache-reset.php" class="function" rel="rdfs-seeAlso">opcache_reset()</a> - Resets the contents of the opcode cache</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>