3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callstacksayswhat() { var_dump(memory_get_peak_usage()); } function my_length(string $a): int { var_dump(memory_get_peak_usage()); return strlen($a); } $a = str_repeat("a", 100_000); callstacksayswhat(); echo "after init--------\n"; var_dump(memory_get_peak_usage()); my_length($a); my_length($a); my_length($a); my_length($a); my_length($a);
Output for git.master
int(490896) after init-------- int(491224) int(491224) int(491224) int(491224) int(491224) int(491224)
Output for git.master_jit
int(450600) after init-------- int(450928) int(450928) int(450928) int(450928) int(450928) int(450928)
Output for rfc.property-hooks
int(490864) after init-------- int(491192) int(491192) int(491192) int(491192) int(491192) int(491192)

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:
81.19 ms | 1111 KiB | 4 Q