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-- Bug #73792 (invalid foreach loop hangs script) --FILE-- <?php $a = 'aaa'; foreac..

Decoded Output download

--TEST--
Bug #73792 (invalid foreach loop hangs script)
--FILE--
<?php
$a = 'aaa';

foreach ($a['2bbb'] as &$value) {
    echo 'loop';
}

unset($value);
echo 'done';
?>
--EXPECTF--
Warning: Illegal string offset "2bbb" in %s on line %d

Fatal error: Uncaught Error: Cannot iterate on string offsets by reference in %sbug73792.php:4
Stack trace:
#0 {main}
  thrown in %sbug73792.php on line 4

Did this file decode correctly?

Original Code

--TEST--
Bug #73792 (invalid foreach loop hangs script)
--FILE--
<?php
$a = 'aaa';

foreach ($a['2bbb'] as &$value) {
    echo 'loop';
}

unset($value);
echo 'done';
?>
--EXPECTF--
Warning: Illegal string offset "2bbb" in %s on line %d

Fatal error: Uncaught Error: Cannot iterate on string offsets by reference in %sbug73792.php:4
Stack trace:
#0 {main}
  thrown in %sbug73792.php on line 4

Function Calls

None

Variables

$a aaa

Stats

MD5 ba97bf303f87916d5797b4ef4ae18cd3
Eval Count 0
Decode Time 257 ms