3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.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 hhvm-3.10.0 - 3.13.2
string(9) "134217728" Warning: ini_set() expects exactly 2 parameters, 1 given in /in/CegR2 on line 5 NULL string(9) "134217728"
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) ""