3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1024 * 1024); // array(); for ($i = 0; $i < 1024 * 1024; ++$i) $array[$i] = 0; echo memory_get_peak_usage();

preferences:
45.24 ms | 402 KiB | 5 Q