3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_length(string $a): int { var_dump(memory_get_peak_usage()); return strlen($a); } $a = str_repeat("a", 100_000); var_dump(memory_get_peak_usage()); my_length($a);
Output for git.master
int(489576) int(489904)
Output for git.master_jit
int(449040) int(449368)
Output for rfc.property-hooks
int(489544) int(489872)

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.21 ms | 1100 KiB | 4 Q