<?php $data = str_repeat('abcde', 500000); $insertion = 'abc'; $position = 0; $data = substr($data, 0, $position) . $insertion . substr($data, $position); echo memory_get_peak_usage(), "\n";
You have javascript disabled. You will not be able to edit any code.