3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; for ($i = 0; $i < 10000; ++$i) $a[$i] = $i; var_dump(memory_get_usage());
based on M36IZ
Output for 7.2.0 - 7.2.6
int(911656)
Output for 7.1.0 - 7.1.1, 7.1.7 - 7.1.10
int(875016)
Output for 7.1.2 - 7.1.6
int(875104)
Output for 7.0.0 - 7.0.20
int(875032)
Output for hhvm-3.15.4
int(2097152)
Output for 5.6.0 - 5.6.30
int(1708248)