3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); for ($i = 0; $i < 100000; $i++) { $arr[] = array("foo" => $i, "bar" => $i); } print(memory_get_peak_usage() . "\r\n"); $arr_chunked = array_chunk($arr, 100); print(memory_get_peak_usage() . "\r\n");

preferences:
48.45 ms | 402 KiB | 5 Q