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-- ReflectionClass::isAnonymous() method --FILE-- <?php class TestClass {} $declar..
Decoded Output download
--TEST--
ReflectionClass::isAnonymous() method
--FILE--
<?php
class TestClass {}
$declaredClass = new ReflectionClass('TestClass');
$anonymousClass = new ReflectionClass(new class {});
var_dump($declaredClass->isAnonymous());
var_dump($anonymousClass->isAnonymous());
?>
--EXPECT--
bool(false)
bool(true)
Did this file decode correctly?
Original Code
--TEST--
ReflectionClass::isAnonymous() method
--FILE--
<?php
class TestClass {}
$declaredClass = new ReflectionClass('TestClass');
$anonymousClass = new ReflectionClass(new class {});
var_dump($declaredClass->isAnonymous());
var_dump($anonymousClass->isAnonymous());
?>
--EXPECT--
bool(false)
bool(true)
Function Calls
None |
Stats
MD5 | dcd4a5969ceba23a27665afbd1f916c1 |
Eval Count | 0 |
Decode Time | 81 ms |