3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(ini_get('memory_limit')); ini_set('memory_limit', '16M'); $s = str_repeat('*', 16 * 1024 * 1024);
Output for master
string(3) "64M" Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 16781312 bytes) in /in/lHP3b on line 5 Stack trace: #0 /in/lHP3b(5): str_repeat('*', 16777216) #1 {main}
Process exited with code 255.

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:
13.63 ms | 1191 KiB | 7 Q