3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_length1(string $a): int { $a[0] = 'f'; var_dump(memory_get_peak_usage()); return strlen($a); } $a = str_repeat("a", 100_000); var_dump(memory_get_peak_usage()); my_length1($a);
Output for git.master
int(490184) int(592616)
Output for git.master_jit
int(449648) int(552080)
Output for rfc.property-hooks
int(490152) int(592584)

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:
40.77 ms | 1107 KiB | 4 Q