3v4l.org

run code in 300+ PHP versions simultaneously
<?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";
Output for git.master
5392312
Output for git.master_jit
5351776
Output for rfc.property-hooks
5392280

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
123.78 ms | 407 KiB | 5 Q