3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
static foo!<br> Warning: Undefined property: Foo::$insstance_property in /in/7QYSV on line 10

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.39 ms | 401 KiB | 8 Q