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--INI--
6memory_limit=-1
7--FILE--
8<?php
9var_dump($a = memory_get_peak_usage());
10var_dump(memory_get_peak_usage(true));
11var_dump(memory_get_peak_usage(false));
12$array = range(1,1024*1024);
13var_dump(memory_get_peak_usage() > $a);
14?>
15--EXPECTF--
16int(%d)
17int(%d)
18int(%d)
19bool(true)
20