Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- SPL: SplPriorityQueue: iteration through methods --FILE-- <?php $h = new SplPrior..

Decoded Output download

--TEST--
SPL: SplPriorityQueue: iteration through methods
--FILE--
<?php
$h = new SplPriorityQueue();

$h->insert(1, 1);
$h->insert(5, 5);
$h->insert(0, 0);
$h->insert(4, 4);

$h->rewind();
echo "count(\$h) = ".count($h)."
";
echo "\$h->count() = ".$h->count()."
";
while ($h->valid()) {
    $k = $h->key();
    $v = $h->current();
    echo "$k=>$v
";
    $h->next();
}
?>
--EXPECT--
count($h) = 4
$h->count() = 4
3=>5
2=>4
1=>1
0=>0

Did this file decode correctly?

Original Code

--TEST--
SPL: SplPriorityQueue: iteration through methods
--FILE--
<?php
$h = new SplPriorityQueue();

$h->insert(1, 1);
$h->insert(5, 5);
$h->insert(0, 0);
$h->insert(4, 4);

$h->rewind();
echo "count(\$h) = ".count($h)."\n";
echo "\$h->count() = ".$h->count()."\n";
while ($h->valid()) {
    $k = $h->key();
    $v = $h->current();
    echo "$k=>$v\n";
    $h->next();
}
?>
--EXPECT--
count($h) = 4
$h->count() = 4
3=>5
2=>4
1=>1
0=>0

Function Calls

None

Variables

None

Stats

MD5 5171fdfee8e7d83e1d531127df10ea9e
Eval Count 0
Decode Time 119 ms