1--TEST--
2int memory_get_peak_usage ([ bool $real_usage = false ] );
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
5--SKIPIF--
6<?php
7$zend_mm_enabled = getenv("USE_ZEND_ALLOC");
8if ($zend_mm_enabled === "0") {
9    die("skip Zend MM disabled");
10}
11?>
12--INI--
13memory_limit=-1
14--FILE--
15<?php
16var_dump($a = memory_get_peak_usage());
17var_dump(memory_get_peak_usage(true));
18var_dump(memory_get_peak_usage(false));
19$array = range(1,1024*1024);
20var_dump(memory_get_peak_usage() > $a);
21?>
22--EXPECTF--
23int(%d)
24int(%d)
25int(%d)
26bool(true)
27