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-- SPL: Test class_implements() function : basic --FILE-- <?php echo "*** Testing cl..
Decoded Output download
--TEST--
SPL: Test class_implements() function : basic
--FILE--
<?php
echo "*** Testing class_uses() : basic ***
";
trait foo { }
class bar { use foo; }
var_dump(class_uses(new bar));
var_dump(class_uses('bar'));
?>
--EXPECT--
*** Testing class_uses() : basic ***
array(1) {
["foo"]=>
string(3) "foo"
}
array(1) {
["foo"]=>
string(3) "foo"
}
Did this file decode correctly?
Original Code
--TEST--
SPL: Test class_implements() function : basic
--FILE--
<?php
echo "*** Testing class_uses() : basic ***\n";
trait foo { }
class bar { use foo; }
var_dump(class_uses(new bar));
var_dump(class_uses('bar'));
?>
--EXPECT--
*** Testing class_uses() : basic ***
array(1) {
["foo"]=>
string(3) "foo"
}
array(1) {
["foo"]=>
string(3) "foo"
}
Function Calls
None |
Stats
MD5 | 6997bf707d8239a9b7c7e0e73eb35348 |
Eval Count | 0 |
Decode Time | 101 ms |