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);
Output for 7.3.0 - 7.3.28, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
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.