3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //preg_match( '#(\d+)(K|M|G)#', ini_get('memory_limit'), $matches ); ini_set( 43 ); var_dump( ini_get('memory_limit') );
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25, 5.4.38 - 7.2.0
Warning: ini_set() expects exactly 2 parameters, 1 given in /in/iORrr on line 4 string(3) "64M"
Output for 5.3.29, 5.4.26 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/iORrr on line 4 string(3) "64M"
Output for 5.2.1 - 5.2.17
Warning: Wrong parameter count for ini_set() in /in/iORrr on line 4 string(3) "64M"
Output for 4.3.0 - 5.2.0
Warning: Wrong parameter count for ini_set() in /in/iORrr on line 4 string(0) ""