3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 100000, true); printf("%.2f mb\n", memory_get_peak_usage() / 1024 / 1024); foreach ($arr as $value) { break; } printf("%.2f mb\n", memory_get_peak_usage() / 1024 / 1024); foreach (array_keys($arr) as $value) { break; } printf("%.2f mb\n", memory_get_peak_usage() / 1024 / 1024);
Output for git.master, rfc.property-hooks
2.37 mb 2.37 mb 4.38 mb
Output for git.master_jit
2.34 mb 2.34 mb 4.34 mb

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