3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 100000; $i += 1) { $a[] = array("a" => "b"); } var_dump((memory_get_peak_usage(true) / 1024 / 1024) . "MB");

preferences:
51.12 ms | 402 KiB | 5 Q