3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { function bar() { var_dump($this instanceof foo); yield; } } (new foo)->bar()->next();
based on pFPQU
Output for 5.5.0 - 7.3.0beta1
bool(true)