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-- strrpos() function --FILE-- <?php var_dump(strrpos("test test string", "test"..

Decoded Output download

--TEST--
strrpos() function
--FILE--
<?php
    var_dump(strrpos("test test string", "test"));
    var_dump(strrpos("test string sTring", "string"));
    var_dump(strrpos("test strip string strand", "str"));
    var_dump(strrpos("I am what I am and that's all what I am", "am", -3));
    var_dump(strrpos("test string", "g"));
    var_dump(strrpos("te".chr(0)."st", chr(0)));
    var_dump(strrpos("tEst", "test"));
    var_dump(strrpos("teSt", "test"));
    var_dump(strrpos("foo", "f", 1));
    var_dump(strrpos("", ""));
    var_dump(strrpos("a", ""));
    var_dump(strrpos("", "a"));
    var_dump(strrpos("\\a", "\a"));
?>
--EXPECT--
int(5)
int(5)
int(18)
int(12)
int(10)
int(2)
bool(false)
bool(false)
bool(false)
int(0)
int(1)
bool(false)
int(1)

Did this file decode correctly?

Original Code

--TEST--
strrpos() function
--FILE--
<?php
    var_dump(strrpos("test test string", "test"));
    var_dump(strrpos("test string sTring", "string"));
    var_dump(strrpos("test strip string strand", "str"));
    var_dump(strrpos("I am what I am and that's all what I am", "am", -3));
    var_dump(strrpos("test string", "g"));
    var_dump(strrpos("te".chr(0)."st", chr(0)));
    var_dump(strrpos("tEst", "test"));
    var_dump(strrpos("teSt", "test"));
    var_dump(strrpos("foo", "f", 1));
    var_dump(strrpos("", ""));
    var_dump(strrpos("a", ""));
    var_dump(strrpos("", "a"));
    var_dump(strrpos("\\\\a", "\\a"));
?>
--EXPECT--
int(5)
int(5)
int(18)
int(12)
int(10)
int(2)
bool(false)
bool(false)
bool(false)
int(0)
int(1)
bool(false)
int(1)

Function Calls

strrpos 1

Variables

None

Stats

MD5 0a0d21f4e503fe3a64e6b394c936179b
Eval Count 0
Decode Time 105 ms