3v4l.org

run code in 300+ PHP versions simultaneously
<?php function recurse_array($in) { if (is_array($in)) { foreach ($in as $val) { recurse_array($val); } } } $array = range(1, 1000); $array[1000] = $array; $array[1000][1000] = $array; $array[1000][1000][1000] = $array; $array[1000][1000][1000][1000] = $array; $array[1000][1000][1000][1000][1000] = $array; echo 'memory before: ', memory_get_peak_usage(), "\n"; recurse_array($array); echo 'memory after: ', memory_get_peak_usage();
Output for git.master
memory before: 717944 memory after: 717944
Output for git.master_jit
memory before: 677424 memory after: 677424
Output for rfc.property-hooks
memory before: 717912 memory after: 717912

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