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-- Variadic Function Call 2 --SKIPIF-- <?php if (version_compare(PHP_VERSION, '5.6'..
Decoded Output download
--TEST--
Variadic Function Call 2
--SKIPIF--
<?php
if (version_compare(PHP_VERSION, '5.6', '<')) exit("Skip This test is for PHP 5.5 only.");
?>
--FILE--
<?php
class :x {
public $value;
public function getValue() { return $this->value; }
}
function variadic($a, :x ...$b) { return $b[1]->getValue(); }
$a = <x />;
$b = <x />;
$a->value = 1;
$b->value = 2;
echo variadic(null, $a, $b);
--EXPECT--
2
?>
Did this file decode correctly?
Original Code
--TEST--
Variadic Function Call 2
--SKIPIF--
<?php
if (version_compare(PHP_VERSION, '5.6', '<')) exit("Skip This test is for PHP 5.5 only.");
?>
--FILE--
<?php
class :x {
public $value;
public function getValue() { return $this->value; }
}
function variadic($a, :x ...$b) { return $b[1]->getValue(); }
$a = <x />;
$b = <x />;
$a->value = 1;
$b->value = 2;
echo variadic(null, $a, $b);
--EXPECT--
2
Function Calls
None |
Stats
MD5 | edeb3d7e473c63f5a0e14bfe463dfd11 |
Eval Count | 0 |
Decode Time | 117 ms |