```php
<?php

eval('class Foo{}');

var_dump((new ReflectionClass('Foo'))->getFileName());
```

produces something like

`string(...) "...(...) : eval()'d code"`

see http://3v4l.org/7PuQ1