3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
49.54 ms | 402 KiB | 5 Q