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-- add old-style parent ctor --SKIPIF-- <?php if(!extension_loaded("runkit") || !RUN..
Decoded Output download
--TEST--
add old-style parent ctor
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
class Test {
}
class FOO_test extends test {
}
class FOO_test_Child extends FOO_test {
}
runkit_method_add("test", "test", "", "var_dump('new constructor');");
$a = new test;
$a = new foo_test;
$a = new FOO_test_Child;
echo "after removing
";
runkit_method_remove("test", "test");
$a = new test;
$a = new foo_test;
$a = new FOO_test_Child;
echo "==DONE==
";
?>
--EXPECT--
string(15) "new constructor"
string(15) "new constructor"
string(15) "new constructor"
after removing
==DONE==
Did this file decode correctly?
Original Code
--TEST--
add old-style parent ctor
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
class Test {
}
class FOO_test extends test {
}
class FOO_test_Child extends FOO_test {
}
runkit_method_add("test", "test", "", "var_dump('new constructor');");
$a = new test;
$a = new foo_test;
$a = new FOO_test_Child;
echo "after removing\n";
runkit_method_remove("test", "test");
$a = new test;
$a = new foo_test;
$a = new FOO_test_Child;
echo "==DONE==\n";
?>
--EXPECT--
string(15) "new constructor"
string(15) "new constructor"
string(15) "new constructor"
after removing
==DONE==
Function Calls
extension_loaded | 1 |
Stats
MD5 | 8dd6159399892ebbe26cdb99d5e4d2d3 |
Eval Count | 0 |
Decode Time | 92 ms |