3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
static foo!<br> Notice: Undefined property: Foo::$insstance_property in /in/7QYSV on line 10
Output for hhvm-3.10.0

Process exited with code 153.