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 class ArraySum extends Handler { use MultipleAddressMode, UnaryOperator, UnitResu..
Decoded Output download
<?php
class ArraySum extends Handler {
use MultipleAddressMode, UnaryOperator, UnitResult;
public function getOperandSize($i) {
switch($i) {
case 1: return "op1_count";
case 2: return 1;
}
}
public function getActionOnUnitData() {
$type = $this->getOperandType(1);
$cType = $this->getOperandCType(1);
$lines[] = "uint32_t i;";
$lines[] = "$cType sum = 0;";
$lines[] = "for(i = 0; i < op1_count; i++) {";
$lines[] = "sum += op1_ptr[i];";
$lines[] = "}";
$lines[] = "res = sum;";
return $lines;
}
}
?>
Did this file decode correctly?
Original Code
<?php
class ArraySum extends Handler {
use MultipleAddressMode, UnaryOperator, UnitResult;
public function getOperandSize($i) {
switch($i) {
case 1: return "op1_count";
case 2: return 1;
}
}
public function getActionOnUnitData() {
$type = $this->getOperandType(1);
$cType = $this->getOperandCType(1);
$lines[] = "uint32_t i;";
$lines[] = "$cType sum = 0;";
$lines[] = "for(i = 0; i < op1_count; i++) {";
$lines[] = "sum += op1_ptr[i];";
$lines[] = "}";
$lines[] = "res = sum;";
return $lines;
}
}
?>
Function Calls
None |
Stats
MD5 | 71e659a36d14f4bcda77da135b957e3a |
Eval Count | 0 |
Decode Time | 120 ms |