@ 2017-07-09T01:35:58Z <?php
$_start = explode(" ", microtime());
$_sys['load'][] = ($_start[1] + $_start[0]) - $_sys['load'][0];
unset($_start);
function format_string($value)
{
$value = trim(
preg_replace("/[^\p{L}\p{N}!?@#$%_^{}.,|&*+\-():\[\]\/\\\]/u", " ",
html_entity_decode($value, ENT_QUOTES, "UTF-8")));
if (!empty($value)) {
return $value;
} else {
return false;
}
}
function format_string_import($value)
{
$value = str_replace("-_", "-",
str_replace("_-", "-",
str_replace("_-_", "-",
preg_replace('/_+/', '_',
preg_replace('/-+/', '-',
strtolower(
trim(
preg_replace("/[^\p{L}\p{N}-\'\"_]/u", "_",
html_entity_decode($value, ENT_QUOTES, "UTF-8")
)
)
)
)
)
)
));
while (isset($value[0]) && $value[0] == "_") {
$value = substr($value, 1);
}
while (isset($value[0]) && $value[0] == "-") {
$value = substr($value, 0, -1);
}
while (isset($value[0]) && substr($value, -1) == "-") {
$value = substr($value, 0, -1);
}
while (isset($value[0]) && substr($value, -1) == "_") {
$value = substr($value, 0, -1);
}
if (isset($value[0])) {
return $value;
} else {
return false;
}
}
function format_num($value)
{
$value = (int)preg_replace("/[^0-9]/", null, $value);
if (isset($value[0])) {
return $value;
} else {
return false;
}
}
function mmc_query($q, $server = 0)
{
if (!empty($q)) {
if ($GLOBALS['_config']['sql_cache'] == 1) {
if ($d = mmc_read($q, $server)) {
return unserialize(base64_decode($d));
} else {
if ($d = read_mysql($q, $server)) {
mmc_send($q, base64_encode(serialize($d)), $server);
return $d;
} else {
return false;
}
}
} else {
return read_mysql($q, $server);
}
} else {
return false;
}
}
function mmc_read($o, $server = 0)
{
if (!empty($o)) {
if (!isset($GLOBALS['MEMCACHE'][$server])) {
$GLOBALS['MEMCACHE'][$server] = memcache_connect($GLOBALS['_config']['memcached_host'][$server], 0);
}
if ($r = memcache_get($GLOBALS['MEMCACHE'][$server], md5($o . $_SERVER['SERVER_NAME']))) {
return unserialize($r);
} else {
return false;
}
} else {
return false;
}
}
function mmc_send($o, $data, $server = 0)
{
if (!empty($o)) {
if (!isset($GLOBALS['MEMCACHE'][$server])) {
$GLOBALS['MEMCACHE'][$server] = memcache_connect($GLOBALS['_config']['memcached_host'][$server], 0);
}
memcache_set(
$GLOBALS['MEMCACHE'][$server],
md5($o . $_SERVER['SERVER_NAME']),
serialize($data),
$GLOBALS['_config']['memcached_compress'],
$GLOBALS['_config']['memcached_time']
);
}
}
function mmc_replace($o, $data, $server = 0)
{
if (!empty($o)) {
if (!isset($GLOBALS['MEMCACHE'][$server])) {
$GLOBALS['MEMCACHE'][$server] = memcache_connect($GLOBALS['_config']['memcached_host'][$server], 0);
}
memcache_replace(
$GLOBALS['MEMCACHE'][$server],
md5($o . $_SERVER['SERVER_NAME']),
serialize($data),
$GLOBALS['_config']['memcached_compress'],
$GLOBALS['_config']['memcached_time']
);
}
}
function read_mysql($q, $server = 0)
{
if (!empty($q)) {
if (!isset($GLOBALS['MYSQL'][$server])) {
$GLOBALS['MYSQL'][$server] = mysqli_connect($GLOBALS['_config']['mysql_host'][$server], $GLOBALS['_config']['mysql_user'][$server], $GLOBALS['_config']['mysql_pass'][$server], $GLOBALS['_config']['mysql_database'][$server]);
}
if ($r = mysqli_query($GLOBALS['MYSQL'][$server], $q)) {
if ($r->num_rows > 0) {
$d = array();
while ($row = mysqli_fetch_assoc($r)) {
$d[] = $row;
}
return $d;
} else {
return false;
}
} else {
return false;
}
} else {
return false;
}
}
function last_mysql_id($server = 0)
{
if (isset($GLOBALS['MYSQL'][$server])) {
if (!empty($GLOBALS['MYSQL'][$server]->insert_id)) {
return $GLOBALS['MYSQL'][$server]->insert_id;
} else {
return false;
}
} else {
return false;
}
}
function send_mysql($q, $server = 0)
{
if (!empty($q)) {
if (!isset($GLOBALS['MYSQL'][$server])) {
$GLOBALS['MYSQL'][$server] = mysqli_connect($GLOBALS['_config']['mysql_host'][$server], $GLOBALS['_config']['mysql_user'][$server], $GLOBALS['_config']['mysql_pass'][$server], $GLOBALS['_config']['mysql_database'][$server]);
}
mysqli_query($GLOBALS['MYSQL'][$server], $q);
}
}
function encrypt($key, $value)
{
return base64_encode(openssl_encrypt($value, "AES-128-CBC", $key, 0, substr(md5($key), 0, 16)));
}
function decrypt($key, $value)
{
return openssl_decrypt(base64_decode($value), "AES-128-CBC", $key, 0, substr(md5($key), 0, 16));
}
function send_mail($to, $to_name, $subject, $body)
{
require_once("Mail.php");
$to = $to_name . " <" . $to . ">";
$headers = array(
'From' => $GLOBALS['_config']['email_name'] . " <" . $GLOBALS['_config']['email'] . ">",
'To' => $to,
'Subject' => $subject,
);
$smtp = Mail::factory(
'smtp',
array(
'host' => $GLOBALS['_config']['email_host'],
'auth' => true,
'username' => $GLOBALS['_config']['email_login'],
'password' => $GLOBALS['_config']['email_pass'],
)
);
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
//return($mail->getMessage());
return false;
} else {
return true;
}
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.4.1 0.009 0.009 14.80 7.4.0 0.006 0.012 15.06 7.3.13 0.004 0.012 15.11 7.3.12 0.006 0.012 14.93 7.3.11 0.013 0.007 15.10 7.3.10 0.007 0.010 14.91 7.3.9 0.009 0.006 14.78 7.3.8 0.007 0.007 14.91 7.3.7 0.004 0.007 14.89 7.3.6 0.011 0.003 14.71 7.3.5 0.007 0.007 14.78 7.3.4 0.003 0.010 14.68 7.3.3 0.009 0.003 14.75 7.3.2 0.012 0.006 16.55 7.3.1 0.004 0.011 16.61 7.3.0 0.013 0.003 16.59 7.2.26 0.010 0.003 15.04 7.2.25 0.008 0.011 15.07 7.2.24 0.000 0.015 14.91 7.2.23 0.003 0.010 14.81 7.2.22 0.000 0.015 15.14 7.2.21 0.004 0.011 14.91 7.2.20 0.010 0.003 15.18 7.2.19 0.003 0.012 15.30 7.2.18 0.000 0.013 14.84 7.2.17 0.006 0.009 15.04 7.2.16 0.007 0.010 14.95 7.2.15 0.004 0.014 16.51 7.2.14 0.011 0.003 16.79 7.2.13 0.004 0.007 16.76 7.2.12 0.010 0.007 16.84 7.2.11 0.003 0.009 16.71 7.2.10 0.003 0.009 16.66 7.2.9 0.011 0.003 16.88 7.2.8 0.006 0.009 16.94 7.2.7 0.004 0.007 16.82 7.2.6 0.003 0.010 17.00 7.2.5 0.004 0.011 16.64 7.2.4 0.012 0.003 16.97 7.2.3 0.009 0.006 16.79 7.2.2 0.004 0.015 16.93 7.2.1 0.000 0.011 16.86 7.2.0 0.006 0.009 16.80 7.1.33 0.006 0.008 15.83 7.1.32 0.004 0.011 15.89 7.1.31 0.007 0.007 15.77 7.1.30 0.008 0.006 15.70 7.1.29 0.007 0.007 15.79 7.1.28 0.003 0.010 15.75 7.1.27 0.014 0.000 15.99 7.1.26 0.006 0.009 15.75 7.1.25 0.007 0.003 15.87 7.1.24 0.006 0.006 15.81 7.1.23 0.005 0.008 15.79 7.1.22 0.008 0.003 15.75 7.1.21 0.006 0.003 15.64 7.1.20 0.000 0.014 15.88 7.1.19 0.004 0.007 15.90 7.1.18 0.009 0.006 15.77 7.1.17 0.006 0.006 15.79 7.1.16 0.004 0.011 15.55 7.1.15 0.013 0.003 15.76 7.1.14 0.000 0.009 15.70 7.1.13 0.000 0.010 15.93 7.1.12 0.006 0.006 15.89 7.1.11 0.003 0.010 15.68 7.1.10 0.003 0.010 15.77 7.1.9 0.006 0.012 15.87 7.1.8 0.009 0.009 15.92 7.1.7 0.006 0.011 16.47 7.1.6 0.010 0.008 25.41 7.1.5 0.013 0.008 25.24 7.1.4 0.012 0.010 25.17 7.1.3 0.011 0.012 25.05 7.1.2 0.018 0.010 25.35 7.1.1 0.003 0.012 16.21 7.1.0 0.005 0.008 15.99 7.0.33 0.000 0.009 15.35 7.0.32 0.004 0.008 15.55 7.0.31 0.004 0.011 15.03 7.0.30 0.010 0.003 15.29 7.0.29 0.004 0.004 15.27 7.0.28 0.000 0.015 15.45 7.0.27 0.010 0.003 15.27 7.0.26 0.004 0.008 15.42 7.0.25 0.009 0.006 15.43 7.0.24 0.006 0.009 15.48 7.0.23 0.006 0.009 15.24 7.0.22 0.006 0.009 15.09 7.0.21 0.003 0.007 15.44 7.0.20 0.000 0.011 15.96 7.0.19 0.007 0.008 16.09 7.0.18 0.005 0.013 15.83 7.0.17 0.005 0.014 15.88 7.0.16 0.002 0.011 15.80 7.0.15 0.007 0.009 15.74 7.0.14 0.010 0.008 15.84 7.0.13 0.008 0.006 15.96 7.0.12 0.006 0.006 15.96 7.0.11 0.007 0.006 15.79 7.0.10 0.004 0.009 15.87 7.0.9 0.003 0.010 15.99 7.0.8 0.004 0.009 15.97 7.0.7 0.004 0.009 15.87 7.0.6 0.005 0.009 15.61 7.0.5 0.005 0.011 16.03 7.0.4 0.009 0.007 15.01 7.0.3 0.008 0.004 15.02 7.0.2 0.006 0.009 14.96 7.0.1 0.005 0.010 14.90 7.0.0 0.000 0.014 14.98 5.6.40 0.003 0.010 14.44 5.6.39 0.006 0.009 14.75 5.6.38 0.005 0.003 14.20 5.6.37 0.003 0.006 14.16 5.6.36 0.000 0.013 14.52 5.6.35 0.007 0.007 14.27 5.6.34 0.007 0.007 14.41 5.6.33 0.006 0.003 14.35 5.6.32 0.003 0.006 14.52 5.6.31 0.004 0.007 14.36 5.6.30 0.003 0.010 14.34 5.6.29 0.009 0.003 14.10 5.6.28 0.006 0.009 14.48 5.6.27 0.008 0.003 14.67 5.6.26 0.000 0.015 14.55 5.6.25 0.003 0.009 14.25 5.6.24 0.006 0.003 14.04 5.6.23 0.007 0.008 14.63 5.6.22 0.003 0.010 14.45 5.6.21 0.016 0.003 14.57 5.6.20 0.004 0.012 14.07 5.6.19 0.006 0.008 14.37 5.6.18 0.006 0.009 14.11 5.6.17 0.000 0.009 14.35 5.6.16 0.000 0.014 14.40 5.6.15 0.003 0.009 14.49 5.6.14 0.007 0.004 14.07 5.6.13 0.003 0.010 14.58 5.6.12 0.006 0.009 14.32 5.6.11 0.007 0.007 14.25 5.6.10 0.011 0.003 14.35 5.6.9 0.009 0.000 14.74 5.6.8 0.007 0.010 14.37 5.6.7 0.000 0.015 14.14 5.6.6 0.006 0.006 14.20 5.6.5 0.004 0.011 14.23 5.6.4 0.006 0.010 13.99 5.6.3 0.006 0.012 14.41 5.6.2 0.003 0.013 14.27 5.6.1 0.004 0.011 14.19 5.6.0 0.009 0.009 14.31
preferences:dark mode live preview
39.3 ms | 400 KiB | 5 Q