3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_set("memory_limit","1")); var_dump(ini_set("memory_limit","1")); $a=str_repeat("A",10*1024*1024);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
string(3) "64M" string(1) "1" Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 10485792 bytes) in /in/mfbKN on line 4
Process exited with code 255.
Output for branch master_jit
string(3) "64M" string(1) "1" Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 10485792 bytes) in /in/mfbKN on line 4
Process exited with code 255.
Output for branch partials
string(3) "64M" string(1) "1" Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 10485792 bytes) in /in/mfbKN on line 4
Process exited with code 255.
Output for branch enumerations
string(3) "64M" string(1) "1" Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 10485792 bytes) in /in/mfbKN on line 4
Process exited with code 255.

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