3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $x = 'AAA'; public $a = 'BB'; public function AA($v) { echo $this->$v; } } $aa = new A(); $aa->AA('x');
Output for 5.3.17 - 7.2.0
AAA