3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $variable = range(1, 1000); echo memory_get_peak_usage(true), PHP_EOL; function foo(&$var) { return bar($var); } function bar($var) { return is_array($var); } foo($variable); echo memory_get_peak_usage(true);
based on fUDN8
Output for 7.0.0 - 7.2.0
2097152 2097152
Output for 5.4.10 - 5.6.28
524288 524288
Output for 5.3.20 - 5.3.29
786432 1048576