<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.memory-get-peak-usage.php',
    1 => 'memory_get_peak_usage',
    2 => 'Returns the peak of memory allocated by PHP',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP-Optionen-/-Informationen-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.ini-set.php',
    1 => 'ini_set',
  ),
  'next' => 
  array (
    0 => 'function.memory-get-usage.php',
    1 => 'memory_get_usage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/info/functions/memory-get-peak-usage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.memory-get-peak-usage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">memory_get_peak_usage</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">memory_get_peak_usage</span> &mdash; <span class="dc-title">Returns the peak of memory allocated by PHP</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.memory-get-peak-usage-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>memory_get_peak_usage</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$real_usage</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Returns the peak of memory, in bytes, that&#039;s been allocated to your PHP
   script.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.memory-get-peak-usage-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">real_usage</code></dt>
     <dd>
      <p class="para">
       Set this to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> to get the real size of memory allocated from
       system. If not set or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> only the memory used by
       <code class="literal">emalloc()</code> is reported.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.memory-get-peak-usage-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns the memory peak in bytes.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.memory-get-peak-usage-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.memory-get-usage.php" class="function" rel="rdfs-seeAlso">memory_get_usage()</a> - Returns the amount of memory allocated to PHP</span></li>
    <li><span class="function"><a href="function.memory-reset-peak-usage.php" class="function" rel="rdfs-seeAlso">memory_reset_peak_usage()</a> - Reset the peak memory usage</span></li>
    <li><a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a></li>
   </ul>
  </p>
 </div>


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