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 function iterate() { $j = 0; var_export($j < 20); $total = 0; for (..
Decoded Output download
<?php
function iterate() {
$j = 0;
var_export($j < 20);
$total = 0;
for ($i = 100; $i < 20; $i++) {$total += $i;}
for ($i = 0; $i < 10; $i--) { $total += $i; } // Phan warns, this decreases but checks if value is less than something
$j = 0;
while ($j == 20) { // should warn because this is initially false.
echo "$j Still 20";
$j++;
}
$k = 0;
while ($k != 20) { // should not warn because this is initially true
echo "$k Still not 20";
$k++;
// TODO: Warn if nothing in the loop modifies $k?
}
return $total;
}
?>
Did this file decode correctly?
Original Code
<?php
function iterate() {
$j = 0;
var_export($j < 20);
$total = 0;
for ($i = 100; $i < 20; $i++) {$total += $i;}
for ($i = 0; $i < 10; $i--) { $total += $i; } // Phan warns, this decreases but checks if value is less than something
$j = 0;
while ($j == 20) { // should warn because this is initially false.
echo "$j Still 20";
$j++;
}
$k = 0;
while ($k != 20) { // should not warn because this is initially true
echo "$k Still not 20";
$k++;
// TODO: Warn if nothing in the loop modifies $k?
}
return $total;
}
Function Calls
None |
Stats
MD5 | e8987e2ad08ad0bf92ba821b86b4269b |
Eval Count | 0 |
Decode Time | 72 ms |