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-- mb_ereg() compat test 1 --EXTENSIONS-- mbstring --SKIPIF-- <?php function_exists(..
Decoded Output download
--TEST--
mb_ereg() compat test 1
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
?>
--FILE--
<?php
/* (counterpart: ext/standard/tests/reg/004.phpt) */
$a="This is a nice and simple string";
if (mb_ereg(".*nice and simple.*",$a)) {
echo "ok
";
}
if (!mb_ereg(".*doesn't exist.*",$a)) {
echo "ok
";
}
?>
--EXPECT--
ok
ok
Did this file decode correctly?
Original Code
--TEST--
mb_ereg() compat test 1
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
?>
--FILE--
<?php
/* (counterpart: ext/standard/tests/reg/004.phpt) */
$a="This is a nice and simple string";
if (mb_ereg(".*nice and simple.*",$a)) {
echo "ok\n";
}
if (!mb_ereg(".*doesn't exist.*",$a)) {
echo "ok\n";
}
?>
--EXPECT--
ok
ok
Function Calls
mb_ereg | 1 |
function_exists | 1 |
Stats
MD5 | fcea00288ef5342393314fd60eafdda5 |
Eval Count | 0 |
Decode Time | 88 ms |