3v4l.org

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

preferences:
59.7 ms | 404 KiB | 5 Q