3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 100; $arr = array_fill(0, $max, 1); //$mem = memory_get_usage(true); foreach ($arr as $key=>&$val) { $arr[$max+1] = 9999; } echo memory_get_peak_usage();
Output for git.master
422624
Output for git.master_jit
382056
Output for rfc.property-hooks
422592

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:
41.1 ms | 401 KiB | 8 Q