Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhrequentTimeSlices extends Phobject { private $objectPHID; privat..
Decoded Output download
<?php
final class PhrequentTimeSlices extends Phobject {
private $objectPHID;
private $isOngoing;
private $ranges;
public function __construct($object_phid, $is_ongoing, array $ranges) {
$this->objectPHID = $object_phid;
$this->isOngoing = $is_ongoing;
$this->ranges = $ranges;
}
public function getObjectPHID() {
return $this->objectPHID;
}
public function getDuration($now) {
$total = 0;
foreach ($this->ranges as $range) {
if ($range[1] === null) {
$total += $now - $range[0];
} else {
$total += $range[1] - $range[0];
}
}
return $total;
}
public function getIsOngoing() {
return $this->isOngoing;
}
public function getRanges() {
return $this->ranges;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhrequentTimeSlices extends Phobject {
private $objectPHID;
private $isOngoing;
private $ranges;
public function __construct($object_phid, $is_ongoing, array $ranges) {
$this->objectPHID = $object_phid;
$this->isOngoing = $is_ongoing;
$this->ranges = $ranges;
}
public function getObjectPHID() {
return $this->objectPHID;
}
public function getDuration($now) {
$total = 0;
foreach ($this->ranges as $range) {
if ($range[1] === null) {
$total += $now - $range[0];
} else {
$total += $range[1] - $range[0];
}
}
return $total;
}
public function getIsOngoing() {
return $this->isOngoing;
}
public function getRanges() {
return $this->ranges;
}
}
Function Calls
None |
Stats
MD5 | 626adb7dfb8e091fb114bb7e2fb47422 |
Eval Count | 0 |
Decode Time | 91 ms |