3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { static public $static_property; public $instance_property; public function instance_method() { echo $this->insstance_property; } public static function static_method() { echo self::$static_property; } } Foo::$static_property = "static foo!<br>\n"; echo Foo::static_method(); $foo = new Foo(); $foo->instance_property = "instance property!<br>\n"; echo $foo->instance_method();
Output for 5.2.15 - 7.2.0
static foo!<br> Notice: Undefined property: Foo::$insstance_property in /in/7QYSV on line 10