3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(ini_get('memory_limit')); var_dump(ini_set('memory_limit', 32*1024*1024)); var_dump(ini_get('memory_limit'));
based on CegR2
Output for 5.4.34 - 5.6.28, 7.0.0 - 7.1.0
string(3) "64M" string(3) "64M" string(8) "33554432"
Output for hhvm-3.10.0 - 3.12.0
string(9) "134217728" string(9) "134217728" string(8) "33554432"
Output for 5.2.1 - 5.4.32
string(3) "64M" Warning: ini_set() has been disabled for security reasons in /in/nmAW2 on line 5 NULL string(3) "64M"
Output for 4.3.5 - 5.2.0
string(0) "" Warning: ini_set() has been disabled for security reasons in /in/nmAW2 on line 5 NULL string(0) ""
Output for 4.3.1 - 4.3.4
string(0) "" Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/nmAW2 on line 5 NULL string(0) ""
Output for 4.3.0
string(0) "" bool(false) string(0) ""