3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = new stdClass(); $o->name = 'Test'; $attr = 'name'; echo $o->{$attr};
based on 0FJnM
Output for 5.3.17 - 7.2.0
Test