3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function b(){return 'A';} } $a = new A; var_dump(new ${!${''}=$a->b()});
based on 1TQsE
Output for 5.3.20 - 7.3.0rc4
object(A)#2 (0) { }