3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = []; for ($i = 0; $i < 100000; $i++) { $list[] = $i; } var_dump(memory_get_peak_usage() / 1024 / 1024);

preferences:
50.84 ms | 405 KiB | 5 Q