3v4l.org

run code in 300+ PHP versions simultaneously
<?php $configuration = array('<?php'); $define = function($def, $value) use (&$configuration) { $v = addslashes($value); $configuration[] = "define('{$def}', '{$v}');"; }; $define('DB_SERVER', 'test'); $define('DB_USERNAME', 'test2'); $define('DB_PASSWORD', 'test3'); $define('DB_DATABASE', 'test4'); $define('PASSWORD_SALT', 'test5'); $define('OAUTH_CONSUMER_KEY', 'test6'); $define('OAUTH_CONSUMER_SECRET', 'test7'); echo implode("\n", $configuration);

preferences:
41.06 ms | 402 KiB | 5 Q