3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(1000, 9999); shuffle($a); var_dump(memory_get_usage(), memory_get_peak_usage());
Output for 7.0.0 - 7.1.0
int(874488) int(874488)
Output for hhvm-3.10.0 - 3.12.0
int(2097152) int(2097152)
Output for 5.5.0 - 5.6.28
int(1572136) int(1645736)
Output for 5.4.10 - 5.4.45
int(1572632) int(1646232)
Output for 5.4.0 - 5.4.9
int(1572128) int(1645728)
Output for 5.3.11 - 5.3.29
int(1975000) int(2048528)
Output for 5.3.0 - 5.3.10
int(1974696) int(2048224)
Output for 5.2.10 - 5.2.17
int(1360736) int(1434216)
Output for 5.2.7 - 5.2.9
int(1362240) int(1434256)
Output for 5.2.3 - 5.2.6
int(1362544) int(1434560)
Output for 5.2.2
int(1360416) int(1432432)
Output for 5.2.1
int(1359920) int(1431936)
Output for 5.0.0 - 5.2.0
<br /> <b>Fatal error</b>: Call to undefined function memory_get_usage() in <b>/in/CgUFb</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: memory_get_usage() in <b>/in/CgUFb</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: memory_get_usage() in <b>/in/CgUFb</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: memory_get_usage() in <b>/in/CgUFb</b> on line <b>4</b><br />