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-- Ensures an exception is thrown if versions are compared with an invalid operator ..

Decoded Output download

--TEST--
Ensures an exception is thrown if versions are compared with an invalid operator
--CREDITS--
David Stockton - <[email protected]> - i3logix PHP Testfest 2017
--FILE--
<?php
try {
    version_compare('1.2', '2.1', '??');
} catch (ValueError $exception) {
    echo $exception->getMessage() . "
";
}
?>
--EXPECT--
version_compare(): Argument #3 ($operator) must be a valid comparison operator

Did this file decode correctly?

Original Code

--TEST--
Ensures an exception is thrown if versions are compared with an invalid operator
--CREDITS--
David Stockton - <[email protected]> - i3logix PHP Testfest 2017
--FILE--
<?php
try {
    version_compare('1.2', '2.1', '??');
} catch (ValueError $exception) {
    echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
version_compare(): Argument #3 ($operator) must be a valid comparison operator

Function Calls

None

Variables

None

Stats

MD5 b152021dbe69171e8391d1e4e95017ed
Eval Count 0
Decode Time 84 ms