- var_dump: documentation ( source)
<?php
namespace Foo;
class Bar {}
$object = new Bar();
var_dump($object::class);
echo "\n";
$string = 'whatever';
var_dump(whatever::class);
var_dump('whatever'::class); // Why does this work...
var_dump($string::class); // ... while this doesn't?