3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function __construct() { $this->bar = "squirrel"; } function getBar() { return $this->bar; } } $foo = new Foo; var_dump($foo->getBar());
based on XiScn
Output for 5.0.0 - 7.3.1
string(8) "squirrel"
Output for 4.3.0 - 4.4.9
Notice: Undefined property: bar in /in/uJAdf on line 8 NULL