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 UTF8Encode extends Handler { use ArrayAddressMode, UnaryOperator; public..
Decoded Output download
<?php
class UTF8Encode extends Handler {
use ArrayAddressMode, UnaryOperator;
public function getOperandType($i) {
switch($i) {
case 1: return $this->operandType;
case 2: return "U08";
}
}
public function getOperandSize($i) {
switch($i) {
case 1: return "op1_count";
case 2: return "res_count";
}
}
public function getActionOnUnitData() {
$lines = array();
$lines[] = "uint32_t length = 0, i;";
$lines[] = "for(i = 0; i < op1_count; i++) {";
$lines[] = "length += encode(op1_ptr[i], res_ptr + length);";
$lines[] = "}";
return $lines;
}
}
?>
Did this file decode correctly?
Original Code
<?php
class UTF8Encode extends Handler {
use ArrayAddressMode, UnaryOperator;
public function getOperandType($i) {
switch($i) {
case 1: return $this->operandType;
case 2: return "U08";
}
}
public function getOperandSize($i) {
switch($i) {
case 1: return "op1_count";
case 2: return "res_count";
}
}
public function getActionOnUnitData() {
$lines = array();
$lines[] = "uint32_t length = 0, i;";
$lines[] = "for(i = 0; i < op1_count; i++) {";
$lines[] = "length += encode(op1_ptr[i], res_ptr + length);";
$lines[] = "}";
return $lines;
}
}
?>
Function Calls
None |
Stats
MD5 | 03a2ac31986b1fb6db4b3edaa8bbe576 |
Eval Count | 0 |
Decode Time | 111 ms |