- var_dump: documentation ( source)
- is_callable: documentation ( source)
<?php
namespace Foo {
function bar() {
if (is_callable('Foo\\time')) {
var_dump(\Foo\time());
}
}
}
namespace {
\Foo\bar();
eval('namespace Foo; function time() { return -1; }');
\Foo\bar();
}