hum ho riscritto il codice usando eregi invece di split, come vi sembra cosi'?

codice:
function system_uptime() {
	$temp = shell_exec("uptime");
	eregi("\\\\\\\\(.+) has been up for: ([0-9]+) day\(s\), ([0-9]+) hour\(s\), ([0-9]+) minute\(s\), ([0-9]+) second\(s\)", $temp, $temp);
	$uptime["name"] = $temp[1];
	$uptime["d"] = $temp[2];
	$uptime["h"] = $temp[3];
	$uptime["m"] = $temp[4];
	$uptime["s"] = $temp[5];
	unset($temp);
}