3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { protected $_foo = 'foo'; public function isMatch() { var_dump($this->_foo); var_dump(self::$_foo); } } class Bar extends Foo { protected $_foo = 'bar'; } $a = new Bar(); var_dump($a->isMatch());
based on VntMm