3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(ini_get('memory_limit')); var_dump(ini_set(32*1024*1024)); var_dump(ini_get('memory_limit'));
based on Wtsts
Output for 5.3.0 - 7.2.0
string(3) "64M" Warning: ini_set() expects exactly 2 parameters, 1 given in /in/CegR2 on line 5 NULL string(3) "64M"
Output for 5.2.1 - 5.2.17
string(3) "64M" Warning: Wrong parameter count for ini_set() in /in/CegR2 on line 5 NULL string(3) "64M"
Output for 4.3.0 - 5.2.0
string(0) "" Warning: Wrong parameter count for ini_set() in /in/CegR2 on line 5 NULL string(0) ""