@ 2015-12-23T13:30:20Z <?php
class SomeException extends Exception {
}
function getDomain() {
return 'example.com';
}
function getSubDomains() {
return array('www.example.com');
}
function register($domainKeys, $subdomains) {
$domains = (array) getDomain();
if ($subdomains == null) {
$domains = array_merge($domains, getSubdomains());
} else {
$domains = array_merge($domains, $subdomains);
}
$san = implode(",", array_map(function ($dns) {
return "DNS:" . $dns;
}, $domains));
throw new SomeException("yo");
return $domains;
}
function register2($domainKeys, $subdomains) {
try {
register($domainKeys, $subdomains);
}
catch(Exception $e) {
trow new Exception($e->getMessage(), $e->getCode(), $e);
}
}
var_dump(register2(null, (array)$nonset));
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.0.1 0.003 0.070 20.09 7.0.0 0.023 0.070 20.15 5.6.16 0.003 0.060 20.48 5.6.15 0.010 0.080 18.34 5.6.14 0.007 0.080 18.27 5.6.13 0.007 0.040 18.18 5.6.12 0.017 0.047 21.04 5.6.11 0.010 0.047 21.13 5.6.10 0.013 0.060 21.14 5.6.9 0.003 0.093 21.00 5.6.8 0.013 0.083 20.50 5.5.30 0.007 0.080 17.97 5.5.29 0.003 0.080 18.01 5.5.28 0.020 0.060 20.89 5.5.27 0.007 0.083 20.86 5.5.26 0.000 0.047 20.90 5.5.25 0.007 0.037 20.63 5.5.24 0.010 0.070 20.28
preferences:dark mode live preview
144.88 ms | 1394 KiB | 7 Q